I want to open a popup, and determine if the URL (such as 5 seconds) meta / 301-header / JavaScript-Redirect / etc - & gt; FF gives me permission-error, because I can not read the URL of the popup, does it seem to have something with a cross-domain policy? !!?
& lt; Script & gt; Var redurl = 'http://www.google.com/'; Cr = window.open (redurl, 'cr', "left = 0, top = 0, width = '50', height = '50', scrollbar = 'no'"); Window.setTimeout (if (cr.location.href! == redurl) Warning ('Redirected');} Hold (e) {Warning ('(Permission Error!!?!?)');} Cr .close ();}, 5000); & Lt; / Script & gt;
Yes, you can not access the URL of the frame from another document due to the domain Cross-Domain Policy
Comments
Post a Comment