<!DOCTYPE html>
<html>
<head>
<title>javascript01.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript">
console.log('测试history and location');
function fn1(){
var href = document.getElementById('ipt').value;
window.location.href = href;
}
</script>
</head>
<body>
<a href="js06_historyBack.html">js06</a><br/>
<a href="#" onclick="fn1()">testLocation</a><input type="text" id="ipt" />
</body>
</html>