Please help us improve our website.
July 29, 2005 7:18 AM
Subscribe
I'm in the final stages of setting up a user survey for my website and wanted to ask a cookie/javascript question.
The current set up is this: a DHTML window will kindly ask visitors to click through to a survey, with a setTimeout of 2 minutes, so I can have visitors actually go through the site beforehand. There is also a session cookie so visitors don't get the popup more than once per visit.
However, the site has more than one page, and this script is rendered useless unless the visitor stays on the same page for 2 minutes (not likely). Is there a way I can introduce a site cookie or any other method that would initiate the javascript after 2 minutes, regardless of which page the user clicks through?
The only solution I found so far is having a dummy window open in the background with the setTimeout, but I don't want any other popups (and they would be likely blocked, anyway). Hopefully someone with more technical knowledge than me will have a solution to this dilemma.
posted by Blue Buddha to computers & internet (7 comments total)
posted by 4easypayments at 7:38 AM on July 29, 2005