frameset跳转

来源:互联网 发布:windows忘记开机密码 编辑:程序博客网 时间:2024/05/16 19:35

例frameset为:

<frameset framespacing="0" border="false" frameborder="0" cols="150,*"><frame name="leftPage" src="leftPage.htm" frameborder="0" marginwidth="0" marginheight="0" framespacing="0" scrolling="no"   noresize><frame name="contentPage" src="contentPage.htm" frameborder="0" marginwidth="0" marginheight="0" framespacing="0" scrolling="no" noresize></frameset>

 

 frameset包含的页面中head部分(如leftPage.htm)加入

<base target='contentPage'>

这样在页面框架中点击leftPage的连接默认跳转到name为contentPage的位置。

原创粉丝点击