Description: Alone with no problem can not and with the search and landing at the same time on a page, there's nothing wrong with opening a page. Just a little bit of AAA and so on there will be errors on the page, I solve the problem is that they do not appear on the same page, but this is not convenient to define Val or other ways to solve this issue? Would you please give me a big advice? Thank you
Document.forms[0] refers to the first form in a page where Setval (val) is only valid for form[0 when there are two forms on the page. The second form is forms[1.
<input type= "text"/> Google <input type= "text"/> Baid U <table border= "0" bgcolor= "#ffffff" > <tr><td nowrap= "nowrap" align= "left" > <script language= "ja Vascript "type=" Text/javascript "> Function Setvar (val) {var inputs = document.getElementsByTagName (" input "); For (i=0 i<inputs.length; i++) {inputs[i].value = val; } </script> <span class = "Gentiny" > AAA BBB CCC </span></td></tr></table> </t extarea>
[ CTRL + A All SELECT Note: If you need to introduce external JS need to refresh to perform]