<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> 通过数组下标引用对象 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form name="myForm">
Input your Name: <input type="text" name="myName" /><br />
Input your Address: <input type="text" name="myAddress" /><br />
</form>
<form name="Domain">
Input Domain: <input type="text" name="OurDomain" /><br />
Input host: <input type="text" name="Ourhost" /><br />
</form>
<script type="text/javascript" language="javascript">
<!--
window.document.forms[0].elements[0].value="easy";
window.document.forms[0].elements[1].value="road-1";
window.document.forms[1].elements[0].value="groad.net";
window.document.forms[1].elements[1].value="bbs";
-->
</script>
</body>
</html>
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |