View Single Post
Old 01-24-2013, 01:02 AM   PM User | #7
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,556
Thanks: 62
Thanked 4,055 Times in 4,024 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Clearly there is *NOTHING* you can do if the contents of the <iframe> are not coming from the *SAME SITE* and the *SAME SECURITY LEVEL* as the main page.

I see that the URL for the <iframe> starts with "https://".

Let's pretend the full URL is something like "https://www.sitex.com/page32.php"

That means that, in order for you to be able to use JavaScript to affect it *AT ALL*, the URL of the main page (the one containing the <iframe> *MUST* be
"https://www.sitex.com/...and only this part can differ..."

Sorry, but those are the rules. It is called "cross site scripting" and is disallowed by all browsers.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
kucster (01-24-2013)