954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

changing of Iframe backgroung color according to parent

Hi experts,
I have a requirement to change the background color of I Frame tag with respect to parent 's bg color. can you provide me the snippet for this.
when iframe is opening if open's with white background color. i changed IFrame color with allow transparency ="true" its working
But i need to change its back ground color with respect to parent color which IFrame tag is in. so when we change color in main page the Iframe background color also has to change.

vmahe
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

that would likely need to be done in the file that opens in the iframe
something like checking if(self.parent.background='blue') do something wonderful

not sure, dont use iframes much, use javascript less, but its an approach

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: