I have a menu which is contain image buttons. I want to hide some buttons in some pages. This is my code and it's not working. I couldn't find the error. Please help me.
Code:
<script type="text/javascript">
document.form1.btn1.style.visibility="hidden";
</script>
<body><form name="form1" >
<table border="0" cellpadding="0" cellspacing="3">
<tbody>
<tr>
<td><html:link action="/loadp1"><img src="images/Btn1.jpg" width="120" height="20" border="0" name="btn1"/></html:link></td>
<td><html:link action="/admin"><img src="images/AdminBtn.jpg" width="120" height="20" border="0" id="admin"/></html:link></td>
.............
</tr>
</tbody>
</table>
</form>
</body>
Comment