社区
JavaScript
帖子详情
**********parent.mainFrame.parent.history.go(-1)这句话有问题吗?@@@@@@@@@
xiaobeibei
2002-11-01 12:53:49
有两个FRAME.其中一个FRAME调用这句话:
parent.mainFrame.parent.history.go(-1)来使另一个FRAME
返回上次的页面.
为什么在有时候会出现"权限拒绝"的错误.
...全文
156
9
打赏
收藏
**********parent.mainFrame.parent.history.go(-1)这句话有问题吗?@@@@@@@@@
有两个FRAME.其中一个FRAME调用这句话: parent.mainFrame.parent.history.go(-1)来使另一个FRAME 返回上次的页面. 为什么在有时候会出现"权限拒绝"的错误.
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
9 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
孟子E章
2002-11-01
打赏
举报
回复
不在同一个域吧
xiaobeibei
2002-11-01
打赏
举报
回复
如果HISTORY.LENGTH为0的话是不是就不行了?
emu
2002-11-01
打赏
举报
回复
本来同一域之内没有这个限制的,虽然其实不需要这么做,但我本地测试是可以的。
潇洒
2002-11-01
打赏
举报
回复
呵呵.... 框架之间的 history 是拒绝访问的.
(嘿嘿.. 不过你可以在当前页做一个 button , 里面加入
history.back() . 然后在其他页面调用的时候.. buttonName.Click() 不就得了?)
(这个框架限制可真多....晕!)
emu
2002-11-01
打赏
举报
回复
试验了一下,
<html>
<frameset cols="50%,*">
<frame src="http://www.google.com"></frame>
<frame src="about:<button onclick='history.go(-1)'>test1<button onclick='parent.history.go(-1)'>test2<button onclick='parent.frames[0].window.history.go(-1)'>test3"></frame>
</frameset>
</html>
test3按钮事件中对其他的框架的history是有拒绝访问的问题,反正history都是一样的,何必非要访问指定框架的history呢?直接在当前框架下面(test1按钮)或者在父框架上面(test2按钮)访问history不就行了?
孟子E章
2002-11-01
打赏
举报
回复
parent.mainFrame.parent.history.length一定是等于0了
pledde
2002-11-01
打赏
举报
回复
top.mainFrame.history.back();
emu
2002-11-01
打赏
举报
回复
parent.mainFrame.parent=parent,你兜这么一圈干什么?
xiaobeibei
2002-11-01
打赏
举报
回复
在同一个域,同一台机器,同一个目录下.
js弹出窗口返回值的简单实例
例如,`window.opener.
parent
.document.frames.item('
mainFrame
').location.href = window.opener.
parent
.document.frames.item('
mainFrame
').location.href` 可以刷新名为 '
mainFrame
' 的框架。 3. 在处理关闭窗口...
window.opener和window.
parent
(转)js操作frame详细解说,window.opener和window.
parent
的区别(2010-11-11 12:13:29) 转载 标签: frame it 分类: html/jstree/jquery frame框
java window的对象方法_[Java] js-window对象的属性
status statusbar statusbar.visible defaultstatus location locationbar locationbar.visible self name closed frames frames.length length document
history
innerHeight innerWidth menubar menubar.visible ...
Keil AGDI Header File
#ifndef __AGDI__INCED___ #define __AGDI__INCED___ //---Revision
History
: ---------------------------------------------- // 17.10.2000, added AG_SYM_SFR ...//----------------------------...
html页面中使用 JS 返回上一页及返回上一页并刷新,iframe中打开指定页面,跳转到指定页面
window.
history
.go(-1); //返回上一页 window.
history
.back(); //返回上一页 //如果要强行刷新的
话
就是:window.
history
.back(); //刷新当前页 window.location.reload(); window.location.go...
JavaScript
87,996
社区成员
224,693
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章