i want to code in javascript onloading with a button , then click the button...

Nanthan

New member
...image wants to be hidden? i want to hide and show again and again with javascript and css plz try code to modify...

function collapse()
{
var img_div = new String();
img_div = document.getElementById("div1").style.display;
if(img_div.toLowerCase()=="block" || img_div == "")
{
document.getElementById("div1").style.display = "none";
}
else
{
document.getElementById("div1").style.display = "block";
}
}
 
Back
Top