HighDots Forums  

popups using "onunload"

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss popups using "onunload" in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
James Mercola
 
Posts: n/a

Default popups using "onunload" - 09-10-2004 , 09:04 PM






I'm trying to devise a plan to launch a "consumer feedback" popup when a
visitor leaves the site, that would open and give visitors a chance to let
us know how easy it is to find material, etc on the site. a cookie would
be set on activation of the window, so that repeat visitors are not bothered
by the window a second time.

using "onunload" in the <body> tag seems to be a way to trigger popups, but
unfortunately, it triggers even if the person proceeds to a different page
in the same site. in searching google, it seemed that some solutions
pointed at using a simple 1 pixel frameset in the site to help determine
when the visitor had left the actual site. i'm a little hesitant to change
the many templates governing the site if there is a simpler solution (site
is large, over 500 pages).

if anyone can point me to any web resources to help with engineering this
approach, it would be much appreciated.

James



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.