Click to See Complete Forum and Search --> : Food for thought on PopUp
jbarto
12-02-2002, 03:59 PM
Here's my situation:
I need to write a script for a company that needs to have a popup window come up when the user leaves the site. Pretty simple, right? Wrong. When the user clicks back, they do not want the popup window to come up. I don't want anyone telling me that it doesn't work because I've seen it on other sites.
Any ideas? Bueller? Bueller?
gil davis
12-02-2002, 04:15 PM
Originally posted by jbarto
I don't want anyone telling me that it doesn't work because I've seen it on other sites.
Prove it by posting a link.
Vladdy
12-02-2002, 05:11 PM
I'm curious what exactly is the NEED to have such popup. Most probably it will make users not to come back.
As far as implementation goes... use onclick with the external links...
jbarto
12-03-2002, 06:35 AM
http://www.mnlawyersinsurance.com
I need to do it because my boss says so. I asked him not to worry about it, but he wants it. The point in having one is to allow the user one more chance to fill out a quote. That's all:)
jalarie
12-03-2002, 01:59 PM
The posted site DOES do the popup upon use of the back button. They use:
onunLoad="javascript:leave();"
jbarto
12-04-2002, 06:33 AM
Originally posted by jalarie
The posted site DOES do the popup upon use of the back button. They use:
onunLoad="javascript:leave();"
You're right. That does work...on their site. I used the same code on my site AND I added a onClick="exit=false" to each link to it wouldn't popup when they clicked a link. Still having the same problem.
Any more ideas?
Thanks for the effort jalarie:)