JS获取文本框的值

JS获取文本框的值

方法一:var name = document.getElementById("name").valuealert(name)方法二:name = form1.name.valuealert(name)方法三
JavaScript290