RE: Open window on close with javascript.

by Klaas De Waele <klaas(at)gracegraphics.be>

 Date:  Mon, 11 Feb 2002 10:13:05 +0100
 To:  "'cbirds(at)earthlink.net'" <cbirds(at)earthlink.net>,
"'HWG'" <hwg-techniques(at)mail.hwg.org>
  todo: View Thread, Original
Should be onUnload instead of onClose.

Remark... why would you want to do this?  Sites that spam me with popup
windows on me exiting are blacklisted immediately.

Also note NS 4.x won't handle onUnload.  If I remember correctly - I once
used this feature to try and do a log-off when a user exited my Chat box
without officially quiting.  Needless to say NS didn't want to do it.


- Kayjey -
www.fiatcoupe.net



-----Oorspronkelijk bericht-----
Van: owner-hwg-techniques(at)hwg.org
[mailto:owner-hwg-techniques(at)hwg.org]Namens cbirds(at)earthlink.net
Verzonden: maandag 11 februari 2002 9:25
Aan: HWG
Onderwerp: Open window on close with javascript.


This is a script I am using to make a popup window appear with an 
emergency/time sensitive message on a site I manage. It works fine from 
the first (index) page, loading instantly. How can I alter this popup 
script to send a third window up when the user then clicks the CLOSE 
button on the second window? I thought if I changed onLoad in the body 
tag to onClose, but no dice. I'm not very savvy about JS, can't write it 
myself, but usually I can fiddle with a script to do what I want it 
to.....help! I only have until tomorrow to finish this.
Thanks.


<.SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popupPage() {
var page = "correction.html";
windowprops = "height=700,width=800,location=center,"
+ "scrollbars=yes,menubars=no,toolbars=no,resizable=no";
window.open(page, "Pop", windowprops);
}
//  End -->
<./script>


<body onLoad="setTimeout('popupPage()', 0000);">

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.