Last post Sep 29, 2013 09:53 PM by Ruchira
Sep 26, 2013 12:59 PM|Nighthawk0712|LINK
I have a message box I want to pop up after pressing a button. Question I have is, how do I keep the message box on the same displays as the website with multiple monitors?
Thanks in advance.
Sep 26, 2013 01:05 PM|MetalAsp.Net|LINK
Having said all this, I'm not sure what you mean by "...same displays as the website with multiple monitors".
Sep 26, 2013 01:07 PM|Nighthawk0712|LINK
I have three monitors. I run the website on monitor 2, the pop up displays on monitor 3. I want the pop up on Monitor 2. I hope this helps.
Sep 26, 2013 01:29 PM|MetalAsp.Net|LINK
It does help, yes. I understand.
The alert will be centered in the screen based on my test (at least the javscript alert()). And in your case, I guess, that might be a different monitor. I don't really know how you'd control that to be honest. Maybe someone else does...
Sep 27, 2013 08:38 AM|Nighthawk0712|LINK
Is there anyone out there that can help with this issue?
Sep 27, 2013 12:09 PM|ryanbesko|LINK
The pop-up you are talking about I assume is a new browser window. This is an issue with all browsers: new windows will always open on the primary monitor. Do as MetalAspNet suggests and use a jQuery popup, which will always appear in the current browser
window, since it is not actually a new browser window.
Sep 29, 2013 09:53 PM|Ruchira|LINK
I run the website on monitor 2
That means you open up your browser from Monitor 2. Isn't it?
the pop up displays on monitor 3
Without a browser, how can monitor 3 display the message? Is it a system message (which is generating from the OS other than the browser)?
I want the pop up on Monitor 2.
If the popup is generating from the browser, then it should display on the browser itself (Which means on the same monitor as you open your website). I can't really think of a reason why it displays on some other monitor. May be a bug in the OS you are checking.
If it's a system generated message, there is nothing you can do as you have no control over OS level from your web application.
P.s. By Message Box, If you are referring to the browser popup window then the following solution might help you.
Please 'Mark as Answer' if this post helps you