Loading ...

How to get Parent page URL by Javascript ?

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  client side web development   » How to get Parent page URL by Javascript ?

How to get Parent page URL by Javascript ?

Posts under the topic: How to get Parent page URL by Javascript ?

Posted: 11/14/2011

Starter 1414  points  Starter
  • Joined on: 12/1/2008
  • Posts: 66

Hello,

I have a scenario where Im opening a modal window dailog from Page1.aspx. Now after opening the modal window dialog If a user copies a URL and tries to open that window dialog directly from the browser. The modal window dialog shouldn't open directly. It should open ONLY from Page1.aspx. How do I check if user has not opened it directly in the browser. Basically Im looking for a substitute of URLReferrer in javascript.

 

Any help would be appreciated.

 

Thanks & regards,

Sumit Arora


tags javascript

Posted: 12/16/2011

Lurker 5  points  Lurker
  • Joined on: 7/14/2010
  • Posts: 1

hello,

 

you try to "window.parent.href"


Page 1 of 1 (2 items)