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 |