日期:2014-05-17  浏览次数:20667 次

隐藏html控件的button按钮

卡巴斯基安全部队 2012 Kis 12.0.0.374 简体中文版: B89ED—S7DKY—M1KMG—Q18T5

?

1339775337---270758352

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF">
<form method="post" action="">
<p> </p>
<p>
<input id="b1" type="button" name="Button" value="Button">
</p>
<p>
<input id="b2" type="button" name="Button2" value="Button" onclick="b1.style.display='none' ">
</p>
<p> </p>
</form>
</body>
</html>

?

//*************************************************************************************************************

<INPUT name="btn" type="button" value="Button">
<script language=javascript>
document.all["btn"].style.display="none";
</script>

or set it runat=server:
<INPUT name="btn" type="button" value="Button" id="Button1" runat="server">
Button1.Visible=false;