i would like to call a cgi script before closing my page. so i placed the
following in my index.html code
..... onbeforeunload= window.location .href='/bin/exit.cgi'>
the problem is that it never gets called, but if i did:
..... onbeforeunload= window.location .href='/bin/exit.cgi';alert ('EXIT HERE')>
then it gets called and all is working fine.
how can i do this without calling alert ?
thanks,
Mel
following in my index.html code
..... onbeforeunload= window.location .href='/bin/exit.cgi'>
the problem is that it never gets called, but if i did:
..... onbeforeunload= window.location .href='/bin/exit.cgi';alert ('EXIT HERE')>
then it gets called and all is working fine.
how can i do this without calling alert ?
thanks,
Mel
Comment