Document method, Document Method
<! 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> <meta http-equiv =" Content-Type "content =" text/html; charset = gb2312 "/> <title> use the Document method </title> <style type =" text/css "> body {font-size: 14px; line-height: 30px;} input {margin: 1px; width: 90px; font-size: 12px; padding: 0 ;}# node {width: 100px; font-size: 24px; font-weight: bold; float: left ;}</style> <script type = "text/javascript"> function changeLink () {document. getElementById ("node "). innerHTML = "Sohu";} function all_input () {var aInput = document. getElementsByTagName ("input"); var sStr = ""; for (var I = 0; I <aInput. length; I ++) {sStr + = aInput [I]. value + "<br/>";} document. getElementById ("s "). innerHTML = sStr;} function s_input () {var aInput = document. getElementsByName ("season"); var sStr = ""; for (var I = 0; I <aInput. length; I ++) {sStr + = aInput [I]. value + "<br/>";} document. getElementById ("s "). innerHTML = sStr ;} </script>