How to get Parent page URL by Javascript?
<p>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.</p>

<p>Any help would be appreciated.</p>

<p>Thanks &amp; regards,</p>

<p>Sumit Arora</p>
