如何在未经确认的情况下自动关闭父/开启窗口! [英] How to auto close the parent / opener window without confirmation!

查看:81
本文介绍了如何在未经确认的情况下自动关闭父/开启窗口!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道如何在没有

确认的情况下自动关闭父/开启窗口?我试过了:


< script>

opener.window.close()

< / script>


----我把它放在子html页面中,没有任何反应!! ---



< script> ;

self.close()

< / script>


----我把它放在父html中页面,它要求我确认和

没有打开子页面,直到我没有...然后父页面

仍然打开-----

是否有办法在子页面打开的同时关闭父页面

关闭或关闭子页面打开后的父页面?


此致,

佩里

Anyone know how to auto close the parent / opener window without
confirmation? I have tried:

<script>
opener.window.close()
</script>

----I put it in the child html page, and nothing happen!!---


<script>
self.close()
</script>

---- I put this in the parent html page, and it ask me to confirm and
does not open the child page until I hit no... then the parent page
remains open-----
Is there a way to close parent page at the same time child page is
close or close parent page upon child page open?

Sincerely,
Perry

推荐答案

PerryC写道:
PerryC wrote:
任何人知道如何在没有
确认的情况下自动关闭父/开启窗口?



是的,我知道如何,90%左右的情况。

我试过:
< script>
opener.window.close()
< / script>

----我把它放在子html页面中,什么都没发生! !---


您应该有一个对话框窗口,询问您是否要允许

脚本关闭窗口(您在哪个浏览器中测试它) ?)

< script>
self.close()
< / script>

----我把这在父html页面中,它要求我确认并且
不打开子页面,直到我没有...然后父页面
仍然打开-----


是的,这就是它的工作方式(有些时候)

有没有办法在子页面关闭或者关闭的同时关闭父页面在子页面打开时关闭父页面?
Anyone know how to auto close the parent / opener window without
confirmation?

Yes, I know how, in 90% or so of the cases.
I have tried:

<script>
opener.window.close()
</script>

----I put it in the child html page, and nothing happen!!---

You should have gotten a dialog window asking if you want to allow
script to close the window (what browser did you test it in?)


<script>
self.close()
</script>

---- I put this in the parent html page, and it ask me to confirm and
does not open the child page until I hit no... then the parent page
remains open-----
Yep, thats the way it works (some of the time)

Is there a way to close parent page at the same time child page is
close or close parent page upon child page open?




是的,在网络浏览器的90%左右。


无条件的真相会让你自由。

-

兰迪

机会有利于准备好的心灵

comp.lang.javascript常见问题 - http://jibbering.com/faq/


好的,兰迪,所以你知道......你介意分享吗?我无法做到

所以......用我放在那里的代码......任何见解?我正在使用IE6。怎么

我可以摆脱确认弹出窗口?或者,更好的是,如何在子窗口中打开

并自动关闭父窗口?什么代码

使用?


此致,

PC

***发送来自Devdex http://www.devdex.com ***

不要只是参加USENET ......获得奖励!
OK, Randy, So you know how... do you mind sharing? I am not able to do
so... with the codes I put there... any insight? I am using IE6. How
can I get rid of the confirmation popup? Or, better yet, how can I open
the child window and close the parent window automatically? What code
to use??

Sincerely,
PC
*** Sent via Devdex http://www.devdex.com ***
Don''t just participate in USENET...get rewarded for it!


Perry Cheng写道:
Perry Cheng wrote:
好的,兰迪,所以你知道...你介意分享吗?我无法这样做......我放在那里的代码......任何洞察力?我正在使用IE6。
如何摆脱确认弹出窗口?或者,更好的是,我怎样才能打开子窗口并自动关闭父窗口?
使用什么代码??
OK, Randy, So you know how... do you mind sharing? I am not able to
do so... with the codes I put there... any insight? I am using IE6.
How can I get rid of the confirmation popup? Or, better yet, how can
I open the child window and close the parent window automatically?
What code to use??



< snip>


兰迪知道并且不讲的事实很重要。在groups.google.com上搜索存档

将显示解释/上下文以及

所需的反社会黑客代码。


Richard。


<snip>

The fact that Randy knows and is not telling is significant. An archive
search at groups.google.com will reveal the explanation/context and also
the code for the antisocial hack needed.

Richard.


这篇关于如何在未经确认的情况下自动关闭父/开启窗口!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆