I used to use the following JavaScript code in my popup windows:
After assigning the color to the 2 Id's, the popup window is closed. It worked perfect!Code:<script type="text/javascript"> <!-- function ChangeColor(color) { opener.document.getElementById("bgcolor").value = color; opener.document.getElementById("xbgcolor").style.background = color; window.close(); } --> </script>
But now I want to use this code in an iFrame instead of a popup window.
But the code does not seem to work. Any one know how I can do the same thing in iFrame?



Reply With Quote




Bookmarks