Click to See Complete Forum and Search --> : how to hide and show elements


hkodi
August 18th, 2000, 10:19 AM
how to hide and show the elements on a html page using javascript.(when a button is click the link should take me to a new page and hide some of the elements on it(like text,checkbox and buttons).
please reply, its very urgent.
hkodi@yahoo.com

soar
August 24th, 2000, 03:44 PM
//Set a flag in a hidden field from the request page
//Then, the response page can hide its own objects

if (document.all.myImgName.style.visibility = "hidden")
{
document.all.myImgName.style.visibility = "visible";
}

soar
August 24th, 2000, 03:45 PM
if (document.all.myImgName.style.visibility == "hidden")