随笔-16  评论-54  文章-0  trackbacks-0
Assigning the target property requires the name of a window not the window itself.

Wecould try something like

window.opener.name="opener728";
form.target="opener728";

however, I suspect the window.name property is read-only.

Alternatively, if We are certain that the opener already has a name then this might work

form.target=window.opener.name;

It's also possible that browsers assign unique names to otherwise unnamed windows, so the above would always work - I've never checked this.


posted on 2006-11-22 15:39 jspark 阅读(463) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: