
Originally Posted by
chris.upjohn
You should be able to use the following
HTML Code:
onchange="document.getElementByName('iframe_name_here').style.background = '#'+this.color"
Thanks Chris, I found how to do it but I forgot to update this post. Here is the code I used:
HTML Code:
onchange="document.getElementById('iframe_id').contentWindow.document.getElementsByTagName('body')[0].style.background = '#'+this.color"
also, for divs:
HTML Code:
onchange="document.getElementById('iframe_id').contentWindow.document.getElementById('header').style.background = '#'+this.color"
I spent a lot of time to finally come up with this and hopefully this will help others as well who want to do the same thing.
Bookmarks