chrisennis
Programmer
Please accept my apologies, but I am new to Javascript.
I have a page where I need to redirect anyone who does not come from a specific set of pages. It was working until I started adding multiple pages and using the 'or' statement. Can anyone tell me what is wrong with the syntax here?
[code<script language="javascript">
if (document.referrer != " || document.referrer !=" || document.referrer !=" || document.referrer !=" || document.referrer !=" location.href = "</script> [/code]
Thanks in advance for any help,
-Chris
I have a page where I need to redirect anyone who does not come from a specific set of pages. It was working until I started adding multiple pages and using the 'or' statement. Can anyone tell me what is wrong with the syntax here?
[code<script language="javascript">
if (document.referrer != " || document.referrer !=" || document.referrer !=" || document.referrer !=" || document.referrer !=" location.href = "</script> [/code]
Thanks in advance for any help,
-Chris