"Mr. x" <a@b.com> writes:
How can I make a form (tag = "<form>") invisible ?
<form id = "myform"> ...
myform.style.visibility = "hidden"; // this doesn't work !!
How doesn't it work? How is it called? In which browser?
The try:
document.forms['myform'].style.visibility="hidden";
or
document.getElementById("myform").style.visibility ="hidden";
It is very bad style to just assume that the form's name can be used
as a global variable. It breaks in many browsers.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'