kev510
Programmer
- Jul 12, 2006
- 61
Hello everyone,
I have the below javascript function in my webpage -
function fPopupWindow()
{
vURL = "Webpage.asp"
window.open(vURL,['PopUp1'],'toolbar=no,status=no,scrollbars=no,resizable=yes,width=1025,height=1000,left=20,top=100');
}
But instead of hard-coding the width and position of the popup window, I would like them to be more dynamic. What exactly I want to do is to center the screen horizontally and then size the width so that the popup screen leaves about 30px to the left and right of the window, to the edge of the screen.
Thank you for your help in advance.
Kevin
I have the below javascript function in my webpage -
function fPopupWindow()
{
vURL = "Webpage.asp"
window.open(vURL,['PopUp1'],'toolbar=no,status=no,scrollbars=no,resizable=yes,width=1025,height=1000,left=20,top=100');
}
But instead of hard-coding the width and position of the popup window, I would like them to be more dynamic. What exactly I want to do is to center the screen horizontally and then size the width so that the popup screen leaves about 30px to the left and right of the window, to the edge of the screen.
Thank you for your help in advance.
Kevin