popup window at center screen
-
Hi, I need to open a calender popup window on click of an image...the popup width and height is set correctly. I need to show the popup at center of the screen...on any machine with any resolution the popup must open at center of the screen... in the javascript function, i have: ChildWindow = window.open('frmCalender.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=200,height=210,toolbars=no,scrollbars=no,status=no,resizable=no,titlebar=no"); How to make the popup open at center screen? Kindly do help me.. Thanks, Dee
-
Hi, I need to open a calender popup window on click of an image...the popup width and height is set correctly. I need to show the popup at center of the screen...on any machine with any resolution the popup must open at center of the screen... in the javascript function, i have: ChildWindow = window.open('frmCalender.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=200,height=210,toolbars=no,scrollbars=no,status=no,resizable=no,titlebar=no"); How to make the popup open at center screen? Kindly do help me.. Thanks, Dee
Add top and left attributes ChildWindow = window.open('frmCalender.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=200,height=210,toolbars=no,scrollbars=no,status=no,resizable=no,titlebar=no,top=300,left=350");