Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
elements
length
For Each {object} In {collection}
id
id
name
name
id
id
name
id
<html>
<head>
<script language="vbscript">
Sub btnGo_onclick()
Dim x, objElem
For x = 0 To document.frmSample.elements.length - 1
MsgBox document.frmSample.elements(x).value
Next
For Each objElem In document.frmSample.elements
MsgBox objElem.value
Next
End Sub
</script>
</head>
<body>
<form id=frmSample name=frmSample>
<input type=text id=txt0 name=txt0 value=0><br>
<input type=text id=txt1 name=txt1 value=1><br>
<input type=text id=txt2 name=txt2 value=2><br>
<input type=button id=btnGo value=Go>
</form>
</body>
</html>