当前位置: 代码迷 >> HTML/CSS >> html中开发技能积累
  详细解决方案

html中开发技能积累

热度:235   发布时间:2012-10-29 10:03:53.0
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>
  相关解决方案