The page URL is accessible through the location property of the window object. If you visit the site in the same subdomain as you, you can get the address through
popupWindow.location.href
However, if the popup is third-party, the same origin policy applies and you are not allowed to check the location. pop-up window. The only ways to get around the same origin policy is through third-party collaboration.
hugomg
source share