Re: Window Location(s)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Homer,

This may work for you - I found it in a post on another site:

You can't specify the monitor, but you can specify the position of the popup window as being relative to the where the click caused the window to popup.

Use the getMouseXY() function to get values to pass as the left and top args to the window.open() method. (the left and top args only work with V3 and up browsers).

window.open docs: http://www.javascripter.net/faq/openinga.htm

function getMouseXY( e ) { if ( event.clientX ) { // Grab the x-y pos.s if browser is IE. CurrentLeft = event.clientX + document.body.scrollLeft; CurrentTop = event.clientY + document.body.scrollTop; } else { // Grab the x-y pos.s if browser isn't IE. CurrentLeft = e.pageX; CurrentTop = e.pageY; } if ( CurrentLeft < 0 ) { CurrentLeft = 0; }; if ( CurrentTop < 0 ) { CurrentTop = 0; }; return true;}

--
Sincerely,

S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche




"Homer J." <KillingComputers@xxxxxxxxxxx> wrote in message news:4C8A34DE-88E8-4111-B429-32A28338FDF2@xxxxxxxxxxxxxxxx
I have a web page that has a popup that is opened via window.open. No
problems here. The web app that I'm writing will be used by folks that run
dual monitors. How can I have that popup open on the same monitor that the
parent is on?
--
Homer J.

.



Relevant Pages

  • Re: Window Location(s)
    ... You can't specify the monitor, but you can specify the position of the popup ... window as being relative to the where the click caused the window to popup. ... Use the getMouseXYfunction to get values to pass as the left and top args ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multiple screens TV and Monitor??
    ... > separatly(TV or Monitor) but it has to be possible to have twinview. ... are also a couple other options that specify the second display, ... # InputDevice "Keyboard" "CoreKeyboard" ... # Specify which keyboard LEDs can be user-controlled ...
    (freebsd-questions)
  • Re: How to play with modelines for monitor display?
    ... >monitor for a desktop system and got those values from Compaq's web site. ... It was necessary to specify both HorizSync and VertRefresh to ... >switching from Solaris to Linux it is necessary to specify a ModeLine in ... but we are not discussing Solaris Xsun configuration nor ...
    (comp.os.linux.misc)
  • Re: [opensuse] Suse 11.1 Monitor Resolutions
    ... a 19" Acer monitor through a kvm switch. ... | of your display devices do not support detection using Display Data ... you may need to specify it manually. ...
    (SuSE)
  • Re: New widescreen monitor, old radeon card - will this not work?
    ... This poster even bought the same monitor I did. ... box with analog via a Radeon 7500 card. ... Limitations of the driver? ... # The BusID line is used to specify which of possibly multiple devices ...
    (freebsd-questions)