Results 1 to 3 of 3
Dec 9, 2012, 08:58 #1
- Join Date
- Nov 2009
- 0 Post(s)
- 0 Thread(s)
Change CSS within iframe on same domain
I am using JSColor script on the admin panel of my web application and I also have an iframe on the same page to preview the changes made to colors. I want the iframe's style update when I change colors using the color picker of JSColor. As this example shows, the following code changes the body background color of the current page.
onchange="document.getElementsByTagName('body').style.background = '#'+this.color"