Answer» I have this code... ------------------------------------------------------------
http://www.w3schools.com/" name="frDocViewer" height="400" width="1030" frameborder="1" >
function HideFrame(){ fr = document.getElementById ("frDocViewer"); if (fr.style.display!='none') { fr.style.display="none";
} ELSE {
fr.style.display="BLOCK"; } }
----------------------------------------------------- which shows/hides an IFrame with the click of a button, but i want it to be hidden by default, any suggestions?Ok, I see now that there's a section for web DEVELOPMENT, can SOMEBODY move this please?Just use the CSS attribute display:none, viz:
Code: [Select]<iframe id="frDocViewer" src="http://www.w3schools.com/" name="frDocViewer" style="height:400px; width: 1030px; border: 1px solid black; display: none;"> </iframe> When posting code on the forums, it HELPS if you put it between [code][/code] tags.
|