" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi
var url = "DemoModalPopup.aspx";
var parameter = " dialogWidth="
+ Math.floor(screen.availWidth/2) + "px; "
+ " dialogHeight="
+ Math.floor(screen.availHeight/2) + "px; "
+ " center=yes; help=yes; "
+ " status=no; resizeable=no;";
var returnParameter = window.showModalDialog(url, parameter);
if (returnParameter == true)
//some business logic
Inside DemoModalpopup.aspx page we have to write the following code
window.returnValue = returnParameter; // the value which is return to the parent page
Mail (will not be published) (required)
Enter Captcha Code *
× 9 = sixty three
Burn Ignorance is a knowledge initiative by Mindfire Solutions
Subscribe to our mailing list to get the updates to your email inbox...