<script type="text/
javascript">
function showhash() {
var b = window.location.hash;
alert(b);
}
function showsearch() {
var a = window.location.search;
alert(a);
}
</script>
</head>
<body>
<input id="Button3" type="Hash" value="button" onclick="showhash()"/>
<input id="Button2" type="button" value="button" />
<input id="Button1" type="button" value="Search获取上一页的name和age的值" onclick="showsearch()"/>
</body>