iframe跳转问题,小弟初学,求助【可怜】

点击a页面的一个链接(b页面)加载到c页面的iframe中,a,c同级

只要iframe的src属性里的地址指向你要的页面就行了

,在a标签里target属性等于你想跳转的iframe的name属性

你直接设置iframe的src就行。

<iframe src="a.html" name="iframeA"/> iframeA里面的a元素 <a href="x.html" target="iframB">,注意target属性,和你要跳转页面的iframe的name属性一致

<iframe src="b.html" name="iframB"/>