<html>
<head></head>
<body>
<form id = "form1" name = "form1" action = "b.html" method = "post">
<table id = "tab" name = "tab">
<tr>
<td>用户名:</td>
<td><input type = "text" id = "user" name = "user" /></td>
</tr>
<tr>
<td>密码:</td>
<td><input type = "password" id = "pwd" name = "pwd" /></td>
</tr>
<tr>
<td colspan = "2"><input type = "submit" value = "提交" /></td>
</tr>
</table>
</form>
</body>
</html>
b.html中,js如何写才能将input中的值读出来
method = "post"
改
method = "get"
然后解析window.location.href
http://blog.csdn.net/niuch1029291561/article/details/7675034
或者通过cookie方式传递
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。