On firefox multi-tab, I open a window with ref=window.open (). It works. A new window is opened in a new tab. On parent window, there is button doing ref.focus(). But it won't put focus on that new window. So how do I set focus on a window in a multi-tab hosting?
Jack
5 17953
Thank you, acoder. After study the page mentioned, still have no idea about how to activate a specific tab on firefox. Do you have sample code about it? thank you very much!
acoder 16,027
Recognized Expert Moderator MVP
The sample code is there. It's a case of using it in the correct context.
Note that using this code would be Mozilla-specific making use of XUL. To get started, see https://developer.mozilla.org/en/XUL_Tutorial.
Thank you, acoder. I'm going to study that and have a try test.
I actually had this same question - here's a solution I found (I know this thread is old, but I know it can be useful to others)
I used: - ref=window.open().focus();
This will not work with all browsers, at least not yet, but it certainly will work with some, and it's worth a try!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: titouille |
last post by:
Hi everybody !
first, sorry for my poor english, I'm french mothertongue ;)
technologies :
--------------
Python 2.3
Twisted Matrix 1.2.0
wxPython 2.5.1
|
by: Robert Dickow |
last post by:
Here's an interesting problem:
When Netscape Nav plays an embedded sound, the current window will
lose focus. Specifically, a user may be typing into a text
input field, but an embedded sound in another frame (refreshed) will
cause the window to lose focus. The user can not even regain focus
by clicking in the text field; one must click first in the window,
then click in the text input field in order to continue typing.
(Internet...
|
by: Benno Bös |
last post by:
If I use the following construct in the frame "main" for a link to an
extern site:
<A HREF="http://www.any.xy" TARGET="extern">
the Browser is creating the window "extern", loading the page
www.any.xy an setting the focus to "extern". But when I go return to
"main" without closing "extern", a click to an other link (e.g.
www.2nd_any.xy) on "main" does not setting the focus to "extern".
|
by: WH |
last post by:
I put this line in HTML
<body bgcolor="#FFFFFF" onLoad="focus()">
Both Mozzila and IE can do self.focus(). However Opera still does not take
the focus().
|
by: Elsa Luiz |
last post by:
Hi everyone,
I have this problem hope you could help me...
I have an A.aspx page with a button, when I click the button I would
like to open another window with containing B.aspx. The problem is
that the window B.aspx appears fine but the focus returns to the
parent (A.aspx), I would like the focus in B.aspx window.
When I click the button on A.aspx I execute the following code:
private void btMyButton_Click(object sender,...
| |
by: Wei |
last post by:
I need the current window stay on focus. The user will have to click on exit
button to exit the window. How can I do this in asp.net in C#?
Thank you
|
by: Charles |
last post by:
Is there a way to detect if a window is out of focus?
Here's what I need it for: I have a web-based chat application that one
of the 2 people chatting may have the chat window open or minimized.
When the chat window is open, probably it's because the person is
reading the other person's messages or because he/she is typing a
message. When the chat window is minimized it's probably because none
of the guys have chatted over the last...
|
by: marty.overdear |
last post by:
I am opening a new window using window.open. I need the new window to
open on top of the parent everytime. I cannot use onBlur b/c the user
will need to click back to the parent for information. I just need it
to open on top everytime. I am using this line in the body
<body onload="window.focus()" bgColor="#0077d6"
ms_positioning="GridLayout">
The window.focus doesn't work everytime. I can open it and it may
work. I will...
|
by: Jason |
last post by:
Hi,
Here's the scenario:
I have a web application that has window A and window B.
A user has both window A and B open - window A is in the foreground and
window B is behind it.
If the user looking at window A clicks the "open window B" link, I want
|
by: acehigh1983 |
last post by:
Is it possible to focus a window in firefox and safari??
i have a webpage that opens another window, it then focuses on the original window (the new window that opened now behind it in the background). In IE it works fine but in firefox and safari it doesn't focus on the original page. I have looked on all sorts of forums etc and apparently FF and Safari block script that uses window.focus(); So just wondering if there is another way to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |