Welcome to WebmasterWorld Guest from 174.129.127.214

Forum Moderators: open

Message Too Old, No Replies

Using JS to get the target URL

I need to get the url where a person is going

   
4:38 pm on Jul 24, 2003 (gmt 0)

10+ Year Member



Hi everyone,

I need to find a way to find out where a person is going when it leaves my web site for statistical reasons. I know of the unload function of JS, but is there a way to find out where that person is going? Because I need to know if the person is staying on my site (and just moving to another page) or completely leaving my site...

Thanks!

4:45 pm on Jul 24, 2003 (gmt 0)

10+ Year Member



Not really. You cannot see the uri string using Javascript. The best way to know whether the visitor left your site is to check your server logs.