Home
Portfolio
Code Library
back to list
How can I check where a visitor has come from?
The code below will display the URL the user was just at before entering your page.
JavaScript
if (document.referrer != '') document.write('You came from: ' + document.referrer);
Posted by fbrefere001 on Tuesday November 30, 2004