html页面跳转方式和a标签的应用
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!--1.页面自动跳转-->
<meta http-equiv="refresh" content="5;url=111.html">
<title>页面跳转方式</title>
<script>
/*2.触发js由window对象的location去跳转*/
function gogo(){
window.location.href="02iframe.html";
}
</script>
</head>
<body>
<!--3.a链接直接跳转-->
<a href="http://www.baidu.com">a链接去百度</a>
<a href="javascript:gogo()">触发js->location跳转</a>
<!--4.与后台交互时的使用跳转-->
<form action="222.html">
<input type="submit"/>
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>a标签的应用</title>
<script>
function gogo(){
alert("点我干