A
A
Andrey Sokolov2015-09-23 10:31:32
css
Andrey Sokolov, 2015-09-23 10:31:32

How to change the styles of the iframe itself from the contents of the iframe?

Good afternoon, on the 2nd day we can’t solve the problem with the site, the site says from the content change iframe styles so that the banner gets up normally, but we insist on our own that this is impossible, if it were possible, then when the site is sleeping, we would change the size of the banner 100% to 100%, which is not logical.

Example:
there is an iframe there is banner.html content is it possible to change the iframe style tag from the banner.html content?
<iframe src="banner.html" />

<img src="1.jpg" />

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Big_Shark, 2015-09-23
@eX1stenZ

You can't do that, you can't change the style of an iframe from the iframe itself.

B
bzz, 2015-09-24
@bzz

Alternatively use postMessage
https://developer.mozilla.org/en-US/docs/Web/API/W...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question