Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > ReferrURL\RedirectPage
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 5th October 17:53
jeff
External User
 
Posts: 1
Default ReferrURL\RedirectPage



The index page of one of my websites is set as the starting document in
IIS. I have another website the user has to log into and if the login
is valid I redirect them to this site. I only want this site to be able
to be opened from my other website. Does anyone have the code to do
this? I was going to use the following java script in the index page,
but not sure if this was correct, and not sure how to redirect back to
the website that called it. Someone mentioned using a server side
method for this.

<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">

if (document.referrer != "http://www.mysite/launch.html")
location.href = "";

</SCRIPT>

TIA
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666