Hello I want to access the text fields in an HTML page. Can I get the name of the fields? Can I insert text into these fields? How?
"Angus" wrote in message news:%23c1r5EkYHHA.2316@TK2MSFTNGP04.phx.gbl > I want to access the text fields in an HTML page. Can I get the name > of the fields? Can I insert text into these fields? How? var allInputs = document.all.tags("input"); for (var i = 0; i < allInputs.length; ++i) { var input = allInputs[i]; if (input.type == "text") input.value = "My name is " + input.name; } -- With best wishes, Igor Tandetnik With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925