Tuesday, June 5, 2012

closing all popup windows in apex using javascript

The following code is a cross-browser solution for closing all popup windows opened by a particular page:

CODE
--<-- html>
--<--head>
----<--script type="text/javascript">

<--/script>
<--/head>
<--body onunload="closeChildWindows();">
Click here to open another new window.
<--/body>
<--/html>

As long as you call the openNewWindow function to open your new windows, this will work.



U can use the function called :-
javascript:html_PopUp(’url’, ‘windowName’, 800, 600);
to open a pop up in Oracle APEX .