hi

i have a parent window with an external url iframe. when the parent loads i want to set the iframe footer to display:none;. is there a way to do this? i have looked all over w/no luck.

thanks

hi

i have a parent window with an external url iframe. when the parent loads i want to set the iframe footer to display:none;. is there a way to do this? i have looked all over w/no luck.

thanks

I hope this should solve your problem:

<script language="JavaScript">
function changeCSS(){
frame = window.document.frames[0];
frame.document.getElementById("myDiv").style.background="red";//OR ..style.display="none";
}
</script>
<a href="javascript:changeCSS()">Click Here here to Change Iframe CSS</a>
<br>
<iframe src="frame.htm" name="myFrame" id="myFrame"></iframe>

frame.htm should have a div tag with the ID as "myDiv".

Regards.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.