Here is a simple function that can help
function ModalDialog(sURL, vArguments, ModalDialogHeight, ModalDialogWidth) { var sFeatures; if (window.showModalDialog) { if (!navigator.userAgent.toLowerCase().match('chrome')) { ModalDialogWidth += "px"; ModalDialogHeight += "px"; } sFeatures = "status:no;center:yes;dialogWidth:" + ModalDialogWidth + ";dialogHeight:" + ModalDialogHeight + ";resizable:yes;"; var returnResult = window.showModalDialog(sURL, vArguments, sFeatures); if (returnResult) { return returnResult; } } else { sFeatures = "status=no,width=" + ModalDialogWidth + ",height=" + ModalDialogHeight + ",menubar=no,scrollbars=no"; window.margs = vArguments; window.open(sURL, "_blank", sFeatures); } }
After growing wildly for years, the field of computing appears to be reaching its infancy. ~John Pierce
good function. Thanks
ReplyDeleteGreat Article
ReplyDeleteASP.NET MVC Training
Online MVC Training
Online MVC Training India
Dot Net Training in Chennai
.Net Online Training
.net training online
Dot Net Online Training
C# Training