<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title></title>
<script>
function post() {
var url = "read.html?name=" + escape(document.all.name.value);
url += "&password=" + escape(document.all.password.value);
window.location = url;
};
</script>
</head>
<body>
Name:<input type="text" name="name"/><br/>
Pass:<input type="text" name="password"/><br/>
<input type="button" value="post" onClick="post()"/>
</body>
</html>
我还有一个read.html的文件,我知道大概就是调用read.html的意思,,但是如果想要吧这个post.html页面的JS和read.html中的JS合并,post.html中的JS代码该如何改动?