谁能给个opener方法的详细定义,及用途?

zjy30106 2002-11-06 04:03:51
谁能给个opener方法的详细定义,及用途?
...全文
101 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
freelyl 2002-11-06
  • 打赏
  • 举报
回复
和本窗口的调用有什么不一样?只不过是加了个opener
arclala 2002-11-06
  • 打赏
  • 举报
回复
http://www.mozilla.org/docs/dom/domref/dom_window_ref77.html
wangxj0600 2002-11-06
  • 打赏
  • 举报
回复
不是方法,是属性。如果一个窗口是用window.open()打开的话,,在opener中存放的是他的父窗口,通过opener属性可以操作他的父窗口,也就是通过opener来使两个窗口发生联系。
yonghengdizhen 2002-11-06
  • 打赏
  • 举报
回复
opener Property

--------------------------------------------------------------------------------

Sets or retrieves a reference to the window that created the current window.

Syntax

HTML N/A
Scripting window.opener [ = sWindow ]

Possible Values

sWindow Variant that specifies or receives the window reference.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Standards Information

There is no public standard that applies to this property.

用于引用打开当前窗口的window对象

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧