View Full Version : Iframe stylesheet parent/child issue.

09-26-2008, 11:12 PM
Hello All,

Pretty new to the forums this is my first question so be kind :)

Its an easy one I'm sure for you guys.

I have two buttons that will be calling a different style sheet each. When one is called I want the other disappear and vice versa. But, I'm have issues even getting the style sheets to switch. This is what I have so far:

This is in an iframe called frDocViewer by the way. So basically, what I am trying to say here is: "if you click on the collapsed button in the parent go into the iframe and change the style in there." I am way off and I need your help.

function Collapse(){
var collapsed = document.getElementById("frDocViewer");