<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中的值读出来