元素附值

元素附值

<html>
<script language="javascript">
function init(){
form1.name.value = "2222222222";
form1.name2.value = "1111111111";
document.getElementById("div1").innerHTML="3333333333";
}

</script>


<body onload="init()">
<form name="form1" method="post" action="">
<input type="text" name="name" size="18" disabled value="">
                 <input type="text" name="name2" size="18" disabled value=""><br/>
                 <div id="div1"></div>
</form>
</body>

</html>

你可能感兴趣的:(元素附值)