Hi,
I'm trying to figure out where the user has navigated from. I have a popup window with a link. When the user clicks on the link the popup window closes and the parent window navigates to url.html:
<a href="#" onclick="opener.location.href='url.html'; window.close(); return false;">Click Me!</a>
Then in 'url.html', I want to print a link if the user came from the popup window. If they didn't come from the popup window link then it would print nothing:
if(document.referrer==" {
document.write('<p><a href="url1.html>Go back to here</a></p>');
} else {}
Does anyone know a way to do this? Any help would be greatly appreciated!
Cheers!
mD
I'm trying to figure out where the user has navigated from. I have a popup window with a link. When the user clicks on the link the popup window closes and the parent window navigates to url.html:
<a href="#" onclick="opener.location.href='url.html'; window.close(); return false;">Click Me!</a>
Then in 'url.html', I want to print a link if the user came from the popup window. If they didn't come from the popup window link then it would print nothing:
if(document.referrer==" {
document.write('<p><a href="url1.html>Go back to here</a></p>');
} else {}
Does anyone know a way to do this? Any help would be greatly appreciated!
Cheers!
mD