I encountered a situation in which, when I open a modal window dialog from Page1.aspx, if a user attempts to directly open that dialog by copying the URL and pasting it into the browser, I want to prevent the modal window from opening. It should only open from Page1.aspx. Is there a way to check if the user did not access it directly through the browser? I am searching for an alternative to URLReferrer in JavaScript.
Any assistance on this matter would be greatly valued.
Best regards,
Sumit Arora