I need to change background color to white of the displayed page if <iframe></iframe>
. Is that possible? Now background of the original website is gray.
<iframe allowtransparency="true" style="background-color: Snow;" src="http://zingaya.com/widget/9d043c064dc241068881f045f9d8c151" frameborder="0" height="184" width="100%">
</iframe>
I want to change the background of loaded page
Put the Iframe between aside tags
<aside style="background-color:#FFF"> your IFRAME </aside>
You can do it using javascript
Plain javascript
jQuery
JavaScript is what you need. If you are loading iframe when loading the page, insert the test for iframe using the onload event. If iframe is inserted in realtime, then create a callback function on insertion and hook in whatever action you need to take :)
I frame background can be changed. like below
and if you want to change the background of page what you have loaded in iframe then i think it not possible.