Is it possible to run javascript commands on a browser for one iframe of the current loaded document (via consol开发者_如何学Ce or javascript: in URL)?
Since it's a different domain, if i try document.getElementById('iframeID').contentWindow.document;
i get an access denied.
if you're using firebug:
cd(frames[0]);
// run stuff now
I don't think it's currently possible in webkit debuggers (it wasn't as of about 6 months ago, but that may have changed), wouldn't have a clue how to do it in IE.
精彩评论