473,651 Members | 2,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Prevent Windows from using my window

AJS
I open a small window with no toolbars and position it in the corner
of the screen.

My problem is that when this window was the last window opened,
Windows will use it to open any link that I click on.

Here is how I test this,
1. I click a link on my html page to open my little window.
2. I click on a link in an email message.
3. The link will open in my little window instead of a new window.

is there any way to prevent this?
Thanks
AJS
Jul 23 '05 #1
4 1279
AJS wrote:
3. The link will open in my little window instead of a new window.
is there any way to prevent this?


This isn't javascript-related, but if you are using IE then under
Tools->Internet Options->Advanced there is an option for "Reuse windows for
launching shortcuts".

Uncheck that and see if it gives you the behaviour you want.

If you are using a different browser, then I don't know :)

--
Matt Kruse
Javascript Toolbox: http://www.JavascriptToolbox.com/
Jul 23 '05 #2
Matt Kruse wrote on 16 jun 2004 in comp.lang.javas cript:
AJS wrote:
3. The link will open in my little window instead of a new window.
is there any way to prevent this?


This isn't javascript-related, but if you are using IE then under
Tools->Internet Options->Advanced there is an option for "Reuse
windows for launching shortcuts".

Uncheck that and see if it gives you the behaviour you want.

If you are using a different browser, then I don't know :)


If you do not want to reuse the main window:

<base target="_blank" >

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #3
Evertjan. wrote:
If you do not want to reuse the main window:
<base target="_blank" >


That won't work when opening windows from other applications, like email,
because obviously the links in the email don't have a "target" attribute.

--
Matt Kruse
Javascript Toolbox: http://www.JavascriptToolbox.com/
Jul 23 '05 #4
"Matt Kruse" <ne********@mat tkruse.com> schrieb im Newsbeitrag
news:ca******** *@news3.newsguy .com...
Evertjan. wrote:
If you do not want to reuse the main window:
<base target="_blank" >


That won't work when opening windows from other applications, like email,
because obviously the links in the email don't have a "target" attribute.


Is your task to solve that problem for your own machine? Then the easiest
way is just to open a blank window before you click a link in your mail or
news application.

If OTOH you want to solve it for your application, then I don't think there
is another possibility than closing the small window as soon as it looses
focus (<body onBlur="self.cl ose()">). I am not even sure if the onBlur event
works if another application gets focus (and not another browser window).

HTH
Markus
Jul 23 '05 #5

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

Similar topics

4
7911
by: Marc | last post by:
Hi, I am doing a gui application where child windows pop up with options after the user selects particular buttons from the master window. However, the master window is still active underneath the child window. If they accidentally press the same button again they can get the same copy of two child windows, and that screws up a bunch of the database stuff that I am trying to collect. I have tried using the 'transient' method, and that...
9
2277
by: Daniel Walzenbach | last post by:
Hi I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx) as a popup using either window.open or window.showModalDialog. Since I want to warn the users of my application when they try to close page1.aspx and have changed the values in the meantime I thought about using the “onbeforeunload” event of the...
2
2222
by: Guy | last post by:
Is there a way to prevent new browsers windows from sharing session variables with the original window? Our team has an ASP.Net app that lets users analyze portfolio risk given certain portfolio constructions. The set weights to certain asset types, hit calculate and see some results. Our problem is that users want to compare different situations side by side. So they either hit CTRL+N or Choose "File, New" launch a new browser window,...
4
6967
by: jon morgan | last post by:
Hello, In an MDI application how can I prevent the CLR automatically merging a child windows' menu with that of the parent MDI form ? Thanks for any help Jon
5
3884
by: skydanb | last post by:
I'm a j-script (and html) newbie with what I thought was a simple requirement: 1) From a link in a primary window open a secondary window 2) Want to specify size of secondary window 3) Want primary window NOT to reload when secondary opens Don't want to prejudge the approach; I'm guessing Javascript can help, and in fact have accomplished 1) and 2) above with the following, embedded in the body of the primary window html:
0
2440
by: ABC | last post by:
There have ASP.NET application using form authorization. Some buttons of the page will open a new modal windows using javascript "Window,ShowModalDialog". As users logoned the application when application start, it expected no more login using the application. But all child or popup windows are redirect to login when showed. How can I to prevent the modal windows redirect to login page?
16
6257
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
2
20627
by: Rob Roberts | last post by:
Is there any way to prevent a ButtonField in a GridView from doing a postback when clicked? I want to use my own onclick handler to call window.open('SomePage.aspx') to display a page in a new browser window when the button is clicked. I tried doing this in the RowCommand postback event by doing this in the event handler: Response.Write("<script>window.open('SomePage.aspx');</script>");
8
10996
by: jaibux | last post by:
Everybody knows how to open (or clone) the same page that you are viewing in a new browser window by CTRL+N or via File->New Window. the question is how to PREVENT to open the SAME WEB APPLICATION (with the same session) in two or more browser windows. any ideas? jaibux@gmail.com
0
8347
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8694
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...
1
8457
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,...
0
8571
tracyyun
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...
0
7294
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 projectplanning, coding, testing, and deploymentwithout 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...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5605
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();...
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1905
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.