跳转到框架集框架中的#anchor
我的框架集中有 3 个帧,在重新加载一帧后,我想将其他帧之一跳到特定的锚点。
有谁知道该怎么做?
我目前已经有了这个 javascript,但它似乎不起作用(LEFT_FRAME_ID 已经设置):
parent.frames[parent.LEFT_FRAME_ID].hash="#100";
谢谢!
I've got 3 frames in a frameset, and after one frame has reloaded I want to jump one of the other frames down to a particular anchor.
Does anyone know how to do that?
I've currently got this javascript but it doesn't seem to work (LEFT_FRAME_ID has already been set):
parent.frames[parent.LEFT_FRAME_ID].hash="#100";
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许可以尝试
parent.frames[LEFT_FRAME_ID].location = "#100";
。或者,虽然它更复杂并且有触发重新加载的风险,但您可以重写另一个框架的
位置
(扫描字符串中的#
,然后替换其余部分)。Maybe try
parent.frames[LEFT_FRAME_ID].location = "#100";
.Alternatively, while it is more complicated and risks triggering a reload, you could rewrite the
location
of the other frame (scan the string for#
, then replace the remainder).