Forum Moderators: open
else void or null or however it is done.
Isn't http referrer the web page that is open? Help with this is grately appreciated.
scriptblock.
<script type="text/javascript">
window.onload = function () {
if (document.referrer == "http://www.example.com/referring_page.html")
return;
else
window.setTimeout("location.href='http://www.website.com/test.php'",990);
}
</script>
edit: replace
document.referrerby
location.hrefif you want to test against the current page.
[edited by: RonPK at 3:49 pm (utc) on Nov. 18, 2006]
I don't know if this will work, let me ask this......
If I tell page1 to refresh. Then I call page1 with page2. With no refresh command in page 2. Why does that always make page2 refresh as well? Can't I just make page 1 refresh somehow without making page 2 refresh as well? Or can't I just make part of a page refresh without the whole page refreshing? Please let me know someone, and then I'll know for sure if I might be able to make Rons code work.