473,890 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opening new browser window in 2nd monitor?

Hi,

Is there any way to specify which monitor a Window.open() will launch a
new browser window in on systems with more than one display. It would
only need to work with Mozilla browsers, and not IE. Thanks!

Sep 7 '05 #1
10 11634
sa*********@yah oo.com wrote:
Is there any way to specify which monitor a Window.open() will launch a
new browser window in on systems with more than one display.


No (well, short of knowing, in advance, the pixel location that monitor
starts at - but EUGH)..

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sep 7 '05 #2
sa*********@yah oo.com said the following on 9/7/2005 5:01 PM:
Hi,

Is there any way to specify which monitor a Window.open() will launch a
new browser window in on systems with more than one display. It would
only need to work with Mozilla browsers, and not IE. Thanks!


And how, please tell, would you be able to tell whether I had 1, 2, 3 or
4 monitors?

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 7 '05 #3

"David Dorward" <do*****@yahoo. com> wrote in message
news:df******** ***********@new s.demon.co.uk.. .
sa*********@yah oo.com wrote:
Is there any way to specify which monitor a Window.open() will launch a
new browser window in on systems with more than one display.


No (well, short of knowing, in advance, the pixel location that monitor
starts at - but EUGH)..


That would only work for spanned displays... not true independent
resolutions.

There really isn't any way to deal with this... for the most part JavaScript
only "knows" about the primary screen (screen sizes will always come back
from the primary screen for example).

Jim Davis
Sep 8 '05 #4
Jim Davis said the following on 9/7/2005 8:31 PM:
"David Dorward" <do*****@yahoo. com> wrote in message
news:df******** ***********@new s.demon.co.uk.. .
sa*********@y ahoo.com wrote:

Is there any way to specify which monitor a Window.open() will launch a
new browser window in on systems with more than one display.


No (well, short of knowing, in advance, the pixel location that monitor
starts at - but EUGH)..

That would only work for spanned displays... not true independent
resolutions.

There really isn't any way to deal with this... for the most part JavaScript
only "knows" about the primary screen (screen sizes will always come back
from the primary screen for example).


That's not entirely true. My browser reports, for screen width, the
total width of my monitors. Which varies based on how I have them
arranged. I can make them horizontal or vertical or a square.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 8 '05 #5
Randy Webb a écrit :
sa*********@yah oo.com said the following on 9/7/2005 5:01 PM:
Hi,

Is there any way to specify which monitor a Window.open() will launch a
new browser window in on systems with more than one display. It would
only need to work with Mozilla browsers, and not IE. Thanks!

And how, please tell, would you be able to tell whether I had 1, 2, 3 or
4 monitors?


Randy, we all know that you have 5 monitors. Everybody knows that. :)

Gérard
--
remove blah to email me
Sep 8 '05 #6
Gérard Talbot said the following on 9/8/2005 12:19 AM:
Randy Webb a écrit :
sa*********@yah oo.com said the following on 9/7/2005 5:01 PM:
Hi,

Is there any way to specify which monitor a Window.open() will launch a
new browser window in on systems with more than one display. It would
only need to work with Mozilla browsers, and not IE. Thanks!


And how, please tell, would you be able to tell whether I had 1, 2, 3
or 4 monitors?


Randy, we all know that you have 5 monitors. Everybody knows that. :)


I have a setup at work that has 8, they paid a bundle for it. At home, I
have 2 but I want 2 more but the bucks just make it, well, prohibitve.
But the issues are the same.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 8 '05 #7
"Randy Webb" <Hi************ @aol.com> wrote in message
news:cs******** ************@co mcast.com...
Jim Davis said the following on 9/7/2005 8:31 PM:
"David Dorward" <do*****@yahoo. com> wrote in message
news:df******** ***********@new s.demon.co.uk.. .
sa*********@ yahoo.com wrote:
Is there any way to specify which monitor a Window.open() will launch a
new browser window in on systems with more than one display.

No (well, short of knowing, in advance, the pixel location that monitor
starts at - but EUGH)..

That would only work for spanned displays... not true independent
resolutions.

There really isn't any way to deal with this... for the most part
JavaScript only "knows" about the primary screen (screen sizes will
always come back from the primary screen for example).


That's not entirely true. My browser reports, for screen width, the total
width of my monitors. Which varies based on how I have them arranged. I
can make them horizontal or vertical or a square.


I should have have said "display" not screen (which is the wrong word for
this)... of course JavaScript doesn't know anything about "Screens" (or if
you even have a monitor) just about defined "displays". I'll bet in your
case these aren't independent displays.

There are two general multi-monitor display options available:

1) Spanned display: this option "stretches" your desktop across multiple
monitors. Although there ARE multiple monitors applications actually only
see one primary display (with an odd resolution). Most spanned displays are
limited to the same resolution and color depth on all monitors. Although
you have multiple monitors you have only one "display" (the primary one)
stretched across them - and JavaScript sees only that.

2) Independent displays. In this case each monitor can have the independent
color depth and resolution. You can, for example, have a 1024x1280 primary
display in true color paired with a secondary 1024x768 secondary display in
16 bit color. Again, JavaScript (on all platforms I've seen) only returns
information on the primary display even if the browser window is currently
on the (smaller) secondary display.

It would be nice if the scripting engine could return, instead, an array of
display information which each element being a collection of screen
information (thus an array of three elements would represent three
independent displays). In this vein a way to retrieve which of these
displays is the current "home" of the browser would be nice as well.

Jim Davis
Sep 8 '05 #8
On Thu, 8 Sep 2005 10:35:18 -0400, Jim Davis wrote:

Firstly, sorry for my english...

[cut]
2) Independent displays. In this case each monitor can have the independent
color depth and resolution. You can, for example, have a 1024x1280 primary
display in true color paired with a secondary 1024x768 secondary display in
16 bit color. Again, JavaScript (on all platforms I've seen) only returns
information on the primary display even if the browser window is currently
on the (smaller) secondary display.


I've Windows 2000, and that's true for Internet Explorer, but not for
Firefox for example. Firefox returns the information about the display
where the browser window is located.

--
~ "Nell'anno 1969 è bastata la potenza di calcolo di due Commodore 64 per
mandare con successo una navicella sulla Luna. Nell'anno 2003 è
necessario un Pentium 4 a 2000 Mhz per far funzionare Windows XP.
Qualcosa deve essere andato storto."

Sep 8 '05 #9
"ZER0" <ze********@lib ero.it> wrote in message
news:77******** ******@ID-171124.news.ind ividual.net...
On Thu, 8 Sep 2005 10:35:18 -0400, Jim Davis wrote:

Firstly, sorry for my english...

[cut]
2) Independent displays. In this case each monitor can have the
independent
color depth and resolution. You can, for example, have a 1024x1280
primary
display in true color paired with a secondary 1024x768 secondary display
in
16 bit color. Again, JavaScript (on all platforms I've seen) only
returns
information on the primary display even if the browser window is
currently
on the (smaller) secondary display.


I've Windows 2000, and that's true for Internet Explorer, but not for
Firefox for example. Firefox returns the information about the display
where the browser window is located.


Cool - the last time I tried in FF is was doing the same as IE.

Neat to know.

Jim Davis
Sep 8 '05 #10

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

Similar topics

6
2675
by: Edward King | last post by:
Hi! I am trying to achieve the following: I have a number of help pages (in the format help_nn.php where nn=helpid). I want to be able to open a particular help page by calling the function gethelp(nn) where nn is the helpid. The function is contained in a header file called funcs.inc that each page
3
3517
by: Clinton Goff | last post by:
I am attempting to write a javascript app that will open a second browser window, load a url, such as www.google.com (foreign url) and perform a <File-Save As> function on that window. I am able to do this with opening a second window that loads a local file, but I get an Access Denied error when I attempt this with a different website. Is there not a command in javascript that will allow me to open a webpage and perform this function? ...
2
1835
by: Mike May | last post by:
Hi IE6 Win2k The javascript FAQ describes how you can retain a reference to a window that you have opened and manipulate the window - focus on it or close it, viz: 4.10 How do I check to see if a childwindow is open, before opening another? var myWin=null; function openWin(aURL) {
10
2409
by: Simon Wigzell | last post by:
Is there any way to create and open a window in javascript so that links in other websites won't "steal" it? I've written a web page with a form for people to enter headlines and URLs from newspapers. They will want my window to stay there as they surf through various online newspapers. We don't want their popup links to take over my form window! This is a real problem - it renders my web page useless and wastes peoples time.
8
8910
by: jrefactors | last post by:
I want to maximize the browser window when I open a new window. Now I do the following, but different monitor size will yield different width and height values. window.open('index.jsp',myform.target,'toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=800,height=600'); Any ideas? please help. thanks!!
2
2113
by: Novice | last post by:
Hi all, as you can see from the subject, I'm try to use an asp:button to create a new browser window and output contents to new window But default if I do the Response.Write("..." The output gets sent directly to the window or frame that the button was contained in - if I was using regular anchor links I could just specify the target - i.e. <a href="http://...." target="nameNotInCurrentFrameset">something</a Thanks Novice
3
2140
by: Larry Bud | last post by:
Wanting to use a technology I saw for one of our apps. We have several apps that a user logs in at on the same page. The app is determined by a drop down. User credentials are checked, response.redirect to the application. The user ID is stored in a session variable which determines if the user is logged in. When the session var goes blank, the user is redirected to the login page. A header on each page checks this. Now, some...
3
7076
by: sohan | last post by:
hi I have hyperlink column in a datagrid. The column contains the name of a text file. I am able to appendthe full path of the file. The file is on D drive on the server. But on clicking on that hyperlink does not open the file. When I right click the link, I am able to save the file. I want the file to be opne in browser in a new window. I started a new webform and used a link
1
1450
by: nashak | last post by:
Hello, I have a aspx page on which I have a button. In the click event method in code-behind I do some processing and now need to open a new window in another browser and pass a couple of parameters. I included in my aspx file, the following js function:
0
9976
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
9815
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
11215
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
10802
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
10908
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
7160
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
4665
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
2
4259
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.