When using 'name' in the form, it works, when using 'id' it doesn't. Any
comments about this? By the way, is this a good method or is it better to
use 'getElementById '?
Carl
<body>
<form name="myform">
<input type button id="antw1" value="test">
</form>
<script type="text/javascript">
res=document.my form.antw1.valu e
alert(res)
</script>
comments about this? By the way, is this a good method or is it better to
use 'getElementById '?
Carl
<body>
<form name="myform">
<input type button id="antw1" value="test">
</form>
<script type="text/javascript">
res=document.my form.antw1.valu e
alert(res)
</script>
Comment