Let me know how to make popout window using javascript in asp.net?
Let me know how to make popout window using javascript in asp.net?
use the code
window.open('url');
to open a new window.
you might require to refresh the parent window after popup is closed..do this using the code below
window.close();
if (window.opener && !window.opener.closed) {
window.opener.location.reload();
}
Last edited by ankur0412; 12-07-2009 at 11:15 AM. Reason: syntax error
You can use window.open() for opening a popup window in the javascript you can pass title and co-ordinates of the window as a parameter
You may use the following code for onload event
<body onLoad="javascript: alert('On Load event fired!')">
and this one for unload event
<body onUnload="javascript: alert('Unload event fired!')">
Bookmarks