Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] pop-up window when a user leaves
- From: javascript@xxxxxxxxxx (Don Makoviney)
- Subject: [Javascript] pop-up window when a user leaves
- Date: Mon, 21 May 2001 15:48:26 -0400
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0E22F.008BB4F0 Content-Type: text/plain; charset="iso-8859-1" Actually, alot of "reputable" sites do the same thing, including the FORTUNE magazine site listed below. DM -----Original Message----- From: Peter Brunone [mailto:peter@xxxxxxxxxxx] Sent: Monday, May 21, 2001 11:31 AM To: javascript@xxxxxxxxxx Subject: Re: [Javascript] pop-up window when a user leaves Isn't that usually what porn sites do? (I've only heard...) This pop-up doesn't always work (i.e. I can select a site from my address bar without setting off the onUnload), but even if it did, would the users really want that? Also, ASP wouldn't be much use for the off-site request, since your page would be loaded and finished by the time the new "outside" page was selected. You could probably store your domain/IP in client-side variables and check the destination in your onUnload -- you'd probably need to experiment to see what property (e.g. window.history(1), window.location.href, etc) holds the upcoming URL -- but this will still be sketchy in terms of its effectiveness. Just some random musings... ----- Original Message ----- From: Don <mailto:DonM@xxxxxxxxxxxxxxxxx> Makoviney To: 'javascript@xxxxxxxxxx' <mailto:'javascript@xxxxxxxxxx'> Sent: Monday, May 21, 2001 8:12 AM Subject: [Javascript] pop-up window when a user leaves I want to have a pop-up window come up when a user leaves my website. I have found several scripts that work when a user leaves a "page", but I only want the pop-up to come up when they leave the "site". Know what I mean? Can anyone point me to a script for that? An example: Go over to fortune.com. . . .view an article. . . .then try and go to another site, like Yahoo or something. At that point the site determines that you are leaving and instantiates a pop-up window. Any ideas? I am thinking that using ASP I can check the new domain or IP out and see if it matches my IP. If not, then do an onunload popup. Any other ideas would be much appreciated. Thanks, DM ------_=_NextPart_001_01C0E22F.008BB4F0 Content-Type: text/html; charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2462.0" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; FONT: 10pt verdana; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" bgColor=#ffffff> <DIV><SPAN class=657264819-21052001><FONT face=verdana>Actually, alot of "reputable" sites do the same thing, including the FORTUNE magazine site listed below.</FONT></SPAN></DIV> <DIV><SPAN class=657264819-21052001></SPAN> </DIV> <DIV><SPAN class=657264819-21052001><FONT face=verdana>DM</FONT></SPAN></DIV> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma>-----Original Message-----<BR><B>From:</B> Peter Brunone [mailto:peter@xxxxxxxxxxx]<BR><B>Sent:</B> Monday, May 21, 2001 11:31 AM<BR><B>To:</B> javascript@xxxxxxxxxx<BR><B>Subject:</B> Re: [Javascript] pop-up window when a user leaves<BR><BR></FONT></DIV> <DIV><FONT face=Arial></FONT> </DIV> <DIV><FONT face=Arial> Isn't that usually what porn sites do? (I've only heard...)</FONT></DIV> <DIV><FONT face=Arial></FONT> </DIV> <DIV><FONT face=Arial> This pop-up doesn't always work (i.e. I can select a site from my address bar without setting off the onUnload), but even if it did, would the users really want that?</FONT></DIV> <DIV><FONT face=Arial></FONT> </DIV> <DIV><FONT face=Arial> Also, ASP wouldn't be much use for the off-site request, since your page would be loaded and finished by the time the new "outside" page was selected. You could probably store your domain/IP in client-side variables and check the destination in your onUnload -- you'd probably need to experiment to see what property (e.g. window.history(1), window.location.href, etc) holds the upcoming URL -- but this will still be sketchy in terms of its effectiveness.</FONT></DIV> <DIV><FONT face=Arial></FONT> </DIV> <DIV><FONT face=Arial>Just some random musings...</FONT></DIV> <DIV><FONT face=Arial></FONT> </DIV> <DIV> </DIV> <BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=DonM@xxxxxxxxxxxxxxxxx href="mailto:DonM@xxxxxxxxxxxxxxxxx">Don Makoviney</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@xxxxxxxxxx href="mailto:'javascript@xxxxxxxxxx'">'javascript@xxxxxxxxxx'</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, May 21, 2001 8:12 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] pop-up window when a user leaves</DIV> <DIV><FONT face=Arial></FONT><BR></DIV> <DIV> <P>I want to have a pop-up window come up when a user leaves my website.</P> <P>I have found several scripts that work when a user leaves a "page", but I</P> <P>only want the pop-up to come up when they leave the "site".</P> <P>Know what I mean?</P> <P>Can anyone point me to a script for that?</P> <P>An example:</P> <P>Go over to fortune.com. . . .view an</P> <P>article. . . .then try and go to another site, like Yahoo or something. At</P> <P>that point the site determines that you are leaving and instantiates a</P> <P>pop-up window.</P> <P>Any ideas? I am thinking that using ASP I can check the new domain or IP out</P> <P>and see if it matches my IP. If not, then do an onunload popup.</P> <P>Any other ideas would be much appreciated.</P> <P><FONT face=Arial></FONT> </P> <P>Thanks,</P> <P>DM</P></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML> ------_=_NextPart_001_01C0E22F.008BB4F0--
- Follow-Ups:
- [Javascript] Emailing page to user
- From: Andrew Gibson
- [Javascript] Emailing page to user
- Prev by Date: [Javascript] browser compatibility
- Next by Date: [Javascript] browser compatibility
- Previous by thread: [Javascript] pop-up window when a user leaves
- Next by thread: [Javascript] Emailing page to user
- Index(es):