It works very well in Firefox. * Export your center an ajax popup window LightBox gallery using HTML Popup Window app in any test folder on a local drive. If you need to center the Window, then either center it in its refresh event or set explicit dimensions. var top = (screen.height/2)-(h/2); You can use popup windows to display important messages or simply make changes on the site. To open the new popup window, we have used the JavaScript window open() method. Based on the activation method, Popups are of the following types: - Open when the user clicks on a link or a button. function open_window(url, width, height) { var my_window; // screen.width means Desktop Width // screen.height means Desktop Height var center_left = (screen.width / 2) - (width / 2); var center_top = (screen.height / 2) - (height / 2); my_window = window.open(url, "Title", "scrollbars=1, width="+width+", height="+height+", left="+center_left+", top="+center_top); my_window.focus(); } //set the width and height of the. HTML Popup Window generates a special code. open popUp inside a popUp window How Showmodaldialog and window.open opens … try it like this: function popupwindow(url, title, w, h) { var y = w... A simple way of doing this is by creating an HTA file which handles HTML and scripting code and launches using Microsoft (R) HTML Application host (c:\windows\system32\mshta.exe) You can design your fonts, background colours using css and html or you can add images also. The syntax to open a popup is: window.open(url, name, params): url An URL to load into the new window. SINGLE/DUAL MONITOR FUNCTION (credit to http://www.xtf.dk - thank you!) UPDATE: It will also work on windows that aren't maxed out to the screen... function showcontactusform () {. Listing 1: A simple page with an alert() Here is a java script function that opens a new window (popup) and puts it on center of screen: With new suggested improvements thanks to long beach web design. Here Mudassar Ahmed Khan has explained how to display a modal popup window using window.open method in JavaScript. position:fixed; kendo.ui.Window - Returns the Window object to support chaining. Open a JavaScript popup window in the center of the screen. Hyper link to close window: 6. var userAgent = navigator.use...