除非关闭,否则如何使子窗口始终具有焦点? [英] How make so child window always has focus unless clossed?

查看:69
本文介绍了除非关闭,否则如何使子窗口始终具有焦点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用window.open(...)打开子窗口的页面。怎么做

我这么做,当那个子窗口打开时,除非关闭子窗口,否则无法获得焦点

回到父窗口?


甚至可能吗?

I have a page that opens a child window using window.open(...). How do
I make so that when that child window opens you cannot get the focus
back on the parent window unless you close the child window?

Is it even possible?

推荐答案

Cyber​​Bless在2005年9月8日8:34发表以下内容:
CyberBless said the following on 9/8/2005 8:34 PM:
我有一个页面,使用window.open(...)打开子窗口。我是如何做到这样的,当那个子窗口打开时,除非关闭子窗口,否则无法将焦点重新放回父窗口?

是否可能?
I have a page that opens a child window using window.open(...). How do
I make so that when that child window opens you cannot get the focus
back on the parent window unless you close the child window?

Is it even possible?




No.


-

Randy

comp。 lang.javascript常见问题 - http://jibbering.com/faq &新闻组周刊



No.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly


Cyber​​Bless写道:
CyberBless wrote:
我有一个页面,使用window.open(...)打开一个子窗口。我是如何做到这样的,当那个子窗口打开时,除非关闭子窗口,否则无法将焦点重新放回父窗口?

是否可能?
I have a page that opens a child window using window.open(...). How do
I make so that when that child window opens you cannot get the focus
back on the parent window unless you close the child window?

Is it even possible?




虽然这样的事情是可能的,但我不认为很多人会想要告诉你如何,就像你的意图可能是什么?b
honarable,这个效果可以并且可能会被滥用

至少有人在路上阅读它。


也许如果你解释了你的要求,可以提供一个合适的替代方案

来满足你的需求和

避免用户会遇到的潜在挫折和困惑

让他们的浏览器被劫持的实验。


说真的,我不是想给你一个艰难的时间,而是

试图拯救你和他人一些悲伤。

-

- 。

- =<> ; Clue博士(AKA Ian A. Storms)<> = - C ++,HTML / CSS,Javascript,TCP ......

- `



While such a thing is possible , I don''t think that many folks
are going to want to tell you how, as while your intentions may be
honarable, the effect can and probably would be abused
by at least someone reading about it down the road.

Perhaps if you explained what you were upto , a suitable alternative
could be provided that would both address your needs and
avoid the potential frustrations and confusion a user would
experiance in having their browser "hijacked".

Seriously , I''m not trying to give you a hard time , but rather
trying to save both you and others some grief.
--
--.
--=<> Dr. Clue (A.K.A. Ian A. Storms) <>=-- C++,HTML/CSS,Javascript,TCP ...
--`




" Cyber​​Bless" < GR **** @ cyberbless.com>在消息中写道

news:11 ********************** @ g43g2000cwa.googlegr oups.com ...

"CyberBless" <gr****@cyberbless.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
我有一个页面,使用window.open(...)打开子窗口。我是如何做到这样的,当那个子窗口打开时,除非关闭子窗口,否则无法将焦点重新放回父窗口?
I have a page that opens a child window using window.open(...). How do
I make so that when that child window opens you cannot get the focus
back on the parent window unless you close the child window?




使用模态对话框而不是子窗口。



use a modal dialogue box instead of a child window.


这篇关于除非关闭,否则如何使子窗口始终具有焦点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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