[thelist] Re: Pop-up when user leaves site

Peter-Paul Koch gassinaumasis at hotmail.com
Mon May 21 12:47:18 CDT 2001


>I was checking out how fortune.com does their popup...it seems that they've 
>rewritten all their links to point to a single frameset "index.jhtml", 
>passing in the actual page as a parameter.

But I also got the popup when I typed in a new URL in the location bar. I 
tested it somewhat more and it seems that the popup occasionally works on IE 
(Win and Mac), but never on Netscape (6/Win and 4/Mac).

>Now, I have a question.  Is it possible to write a JavaScript function that 
>will automatically change every link on a page to point to somewhere else 
>(just like "index.jhtml").  It would be pain to do this manually...

In each page:

var x = document.links
for (i=0;i<x.length;i++)
{
   x[i].href = 'page.html';
}

ppk

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the thelist mailing list