Menu
Hello,
I’m trying to change these attributes of the input tag. Why doesn’t it work?
[code]
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>New Page 1</title>
<script type=”text/javascript”>
function init(){
var input = document.getElementById(“input”);
input.setAttribute(“name”, “CODE”);
input.setAttribute(“value”,”CODE”);
}
</script>
</head>
<body onload=”init()”>
<form>
<input id=”input” type=”hidden” name=”” value=””>
</form>
</body>
</html>