使用frameset框架,最典型的就是页面跳转时,仅仅只是内部页面的跳转,
而不是整个的浏览器跳转;
不要使用location.href 而是使用 window.top.location.href
"window.location.href"、"location.href"是本页面跳转.
"parent.location.href" 是上一层页面跳转.
"top.location.href" 是最外层的页面跳转.
举例说明:
如果D页面中有form:
本文详细介绍了在使用frameset框架布局时如何实现不同层级页面间的跳转。包括使用window.location.href、parent.location.href及top.location.href的区别,以及通过设置form标签的target属性来控制页面跳转的行为。
使用frameset框架,最典型的就是页面跳转时,仅仅只是内部页面的跳转,
而不是整个的浏览器跳转;
不要使用location.href 而是使用 window.top.location.href

被折叠的 条评论
为什么被折叠?