tryit_view.asp@filename=try_dom_collection_item
来自「W3Schools tutorial..web designing」· ASP@FILENAME=TRY_DOM_COLLECTION_ITEM 代码 · 共 22 行
ASP@FILENAME=TRY_DOM_COLLECTION_ITEM
22 行
<html>
<body>
<form id="Form1" name="Form1">
Your name: <input type="text">
</form>
<form id="Form2" name="Form2">
Your car: <input type="text">
</form>
<p>
To access an item in a collection you can either use the number or the name of the item:
</p>
<script type="text/javascript">
document.write("<p>The first form's name is: " + document.forms[0].name + "</p>");
document.write("<p>The first form's name is: " + document.getElementById("Form1").name + "</p>");
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?