Re: OnUnload impossibility!
by "Paul Wilson" <webguroo(at)tampabay.rr.com>
|
| Date: |
Thu, 10 Jan 2002 17:38:56 -0500 |
| To: |
"Mike Taylor" <lonewolf(at)one.net>, <hwg-techniques(at)hwg.org> |
| References: |
one |
| |
todo: View
Thread,
Original
|
|
They are using several external javascript files. Look at hat.js and
common.js refernnces in the header
Paul Wilson
webguroo(at)tampabay.rr.com
> Yet, it must be possible.
>
> I had always thought that OnUnload could not tell the difference between
> closing a browser and simply moving to a different page within or outside
> of a site.
>
> Someone recently asked me if it's possible to make a pop-up window appear
> when the user either closes their browser or moves off the site to another
> one, and I said yes, but it would also mean they'd get the same pop-up if
> they also merely changed to a different page within the same site.
>
> Yet, I just went to fortune.com, and they've apparently come up with a way
> to overcome this. The pop-up ONLY appears when you close the browser or
> leave the site. If you click on a link within fortune.com, no pop-up
> appears. But they are using OnUnload...
>
> Even more bizarre is that there is no client side JavaScript appearing in
> the source when viewing this page in Netscape 4.x...how is THAT possible?
>
> I'm stumped on how they achieved this. Anyone have any ideas?
>
> Mike
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/02
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.