So have one url like:
https://subdomain.domain.com/popuppage
I am opening this in popup window using:
window.open("https://subdomain.domain.com/popuppage", null, "height=600,width=800")
Now the same page is opened in new tab after clicking on the link of third party website. The issue is I want to identify that it is being opened by me or third party website. Is there any way to do it?
I have tried by checking window.opener
property but in both cases I am getting window.opener
and browser doesn't allows me to access any property of window.opener
because of CORS policies.