Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Check Referer Page

vitodcMay 10 2006 — edited May 10 2006
Hi,

I have entered the following JS code in my page header:
<<CODE>>
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers<br>

if (document.referrer != "www.someurl.com")
location.href = "http://www.gohere.com";
//-- Stop hiding script -->
</SCRIPT>
<<ENDCODE>>

However I always get the value "undefined".
Is there anyway to check what the referer page is?

Thanks in advance.
VC
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 7 2006
Added on May 10 2006
2 comments
434 views