Thanx thats what i was looking for and i did something like this.
<//html file A
<SCRIPT>
// Vedlikehold av regningsadresse
function ventvindu() {
open("/PlexSysWeb/marked/venting.jsp", "jada123", "width=x,height=y");
}
</SCRIPT>
//html file B that close what A as opened
<SCRIPT>
var w = open("#", "jada123");
w.close();
</SCRIPT>
There is only one problem to this. Nothing prevents the user from clicking
on the html page A and ignore the popup window to hold youre horses until
the prosess is done. I NEED to prevent any clicking whatsoever while
somepage is prosessing. Making it bulletproof even for the most stupid user
!
"lallous" <la*****@lgwm.org> skrev i melding
news:bj************@ID-161723.news.uni-berlin.de...
Hello
you can get the window object as var newwin = window.open() ; later as the
page unloads you can call newwin.close();
to catch the document unload event capture the window.unload event.
--
Elias
http://lgwm.org/
"KS" <ka*****@hotmail.com> wrote in message
news:3f********@news.broadpark.no... Is it possible to write a javascript that makes a popup window when
someone click on buttons/href on my page and close itself when the new page is
about to get loaded? I want to prevent the user from clicking anything else on
my page while the request is getting a new page. The popup window must lock
the focus.
I use frames i can not just disable all the buttons an href in different
frames.