html中开发技能积累

html中开发技巧积累1、iframe中嵌入页面跳转页面方法iframe width500 height600srch.html/ifra

html中开发技巧积累
1、iframe中嵌入页面跳转页面方法

<iframe width="500" height="600"  src="h.html">
</iframe>
<body>
<a  onclick="opens_a()">test click</a>
</body>
</html>
<script language="javascript">
function opens_a(){
window.parent.document.location.href = "http://www.baidu.com";
}
</script>