当前位置: 代码迷 >> 综合 >> div页面跳转
  详细解决方案

div页面跳转

热度:93   发布时间:2023-10-26 18:23:54.0

div链接,跳转页面,如何点击<a>在div里打开网页


了解后的总结:

<javascript>
function 跳转函数名(){
document.getElementById("content").src="iframe中后来跳转的页面";
}
</javascript>

<div><a href="javascript:跳转函数名">点击我跳转</a></div>

<div >
<iframe id="content" name="content" src="iframe基础内容的页面"></iframe>
</div>

  相关解决方案