473,769 Members | 5,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with window.open in Firefox

Hello

The window.open method brings my window to the top only if it is new. If
it's being reused, the window does not come to the foreground (with IE 6 it
does).

Is there a new way in Mozilla/Firefox that I can ensure that this
window comes to the top?

Thank you for your help
Jan 10 '06
13 22175
Thomas 'PointedEars' Lahn said the following on 1/12/2006 9:10 AM:

<snip>
You can _never_ be sure that a window is new


Quite to the contrary my friend.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 12 '06 #11
Thomas 'PointedEars' Lahn wrote:
[snip nitpicking]
[flame]

On the contrary, there were no flames present. Just a very good point. You
don't practice what you preach. Leading by example is much harder than
leading by words.

Perhaps if you questioned yourself about why your own work doesn't represent
the ideals that you seem to preach, you might be more sympathetic and
understand of others.

I'm reminded of the quote from the movie Silence Of The Lambs:
"You see a lot, Dr. Quinn. But are you
strong enough to point that high-powered
perception at yourself? How about it...?
Look at yourself and write down the truth.
Or maybe you're afraid to."
[x] Score adjusted


What does this even MEAN, why would anyone CARE, and why must you ANNOUNCE
your personal actions?

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Jan 12 '06 #12
Thomas Lahn,

Anyone can verify all by himself my claims directed and regarding your
very own site and your admonishing+nit picking manners.
You have been preaching in this newsgroup during years about valid
markup code, validating webpages, etc.. but your own website fails
miserably and has been failing miserably for years to comply with your
own preaching standards.

Anyone can go to the WDG validator site and verify this:
http://www.htmlhelp.com/cgi-bin/vali...&hidevalid=yes
Validation of http://pointedears.de/scripts/

http://www.htmlhelp.com/cgi-bin/vali...&hidevalid=yes

1102 markup errors out of 100 pages.

You use frames, you use deprecated attributes hundreds of times, you use
deprecated elements, you don't even use a strict DTD, etc,etc, etc..

Anyone can verify for himself my claims here.

Your site is exactly the opposite of what you admonishingly reproach in
other's code. You have been told this before in this newsgroup and you
have continued to ignore such call to become yourself consequent,
coherent. So, the logical conclusion should be that you are an
hypocritical, some sort of a deliberate liar, a cheater.

You practice the reverse of what you demand to others. You deny what you
demand to others. You refuse to comply with your own demands to others.
Gérard
--
remove blah to email me
Jan 12 '06 #13
VK

tochiromifune wrote:
The focus works in IE but not in Firefox.


Pop-ups and Pop-unders are considered to be one of so-called "Common
Annoyances" in Firefox and they have damn good reasons to think so (me
too).

In Firefox:
1) Tools > Options...
2) Switch on "Content" tab
3) Uncheck "Block Popup Windows"
4) In "Enable JavaScript" section click "Advanced"
5) Check "Raise or lower windows"

Now your Firefox is vulnerable against popup advertisers of all kinds.
And you script should work too - but you can realize how useless it can
be on a real run.

P.S. Do not forget to put default settings back for your own good! ;-)

Jan 12 '06 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3602
by: Jiri Brada | last post by:
Hi, I have got a following problem with using Javascript: I have a HTML page with pictures' thumbnails. After clicking on any thumbnail, I would like to open a new window with the original size picture. In the main window with thumbnails, I have got following important stuff: <SCRIPT LANGUAGE="JavaScript">
8
5657
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var popWindow=window.open('http://www.yahoo.com','','width=600,height=400,toolbar=1,location=1,menubar=1,resizable=1,titlebar=1,directories=1,status=1,scrollbars=1'); the sidebars are disabled. I click on the buttons for bookmarks and history and they do nothing. I...
23
6414
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div align="center">
4
3604
by: Csaba Gabor | last post by:
Up until a few weeks ago, javascript code like window.open("http://mydomain.com", "windowName"); would always bring my new or reused window to the top, with focus. Lately, Firefox (Deer park alpha 2) only brings it to the top if the window is new. If it's being reused, the window does not come to the foreground (with IE 6 it does). Is there a new way in Mozilla/Firefox that I can ensure that this
18
3349
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to the image. The desired behavior is that when the pop-up is invoked, I want the underlying window to stay put. I don't have this problem when I run the code on my local computer but I do have it when I run the code on geocities.
3
2529
by: BoBi | last post by:
Hi, See the following URL for the concerned page: http://home.scarlet.be/kenya-belgium/list_2_en/a_kenyan_cat_and_a_belgian_cat.html Clicking on "Menu" or "Publication" in the right upper corner triggers the concerned code. In the code: menuwd = window.open(locurl, 'kenbelmenu',
4
3268
by: arajunk | last post by:
In Firefox this opens a full size window (maximized) . In IE it opens the partial window requiring user to click restore (upper right) to maximize. What am I missing ? var infoWindow=window.open('usgsMain.html','USGSwindow','status=no,resizable=yes,scrollbars=yes');
4
9828
by: deBaer | last post by:
Hi! For an in-house web application (it will only be deployed on Firefox browsers with JavaScript turned on), I need to open a preview window (which needs to be a separate window, even if Firefox is set to open targeted links in new tabs) and be able to change the preview window's location.href from the opening window, even after a new page is loaded into that window. Is there any way to do that?
0
9589
marktang
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...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
jinu1996
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...
0
8872
agi2029
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...
0
6673
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();...
0
5299
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...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3562
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.