点击链接让页面在iFrame切换里显示


<html> 
<body> 
<a href= "1.html " target= "iFrame1 "> page1 </a> <br/> 
<a href= "2.html " target= "iFrame1 "> page2 </a> <br/> 
<a href= "3.html " target= "iFrame1 "> page3 </a> <br/> 
<a href= "4.html " target= "iFrame1 "> page4 </a> <br/> 
<div id= "iFrame1 " style= "position:absolute; left:220px; top:200px; z-index:18 "> 
<iframe name= "iFrame1 " width=542 height=615 src= "1.html " scrolling= "auto " frameborder= "0 "> </iframe> 
</div> 


</div> </body> 
</html>

主要是在iframe里定义name=XXX ,然后在href里用 target调target=XXX 。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM