I am using JavaScript as a popup.
But what I’d like it to do is load the popped up page in a certain area, Specified by say an X & Y coordinate.
My current code is :
function openwindow()
{
window.open("index.php?dll=gallery&sub=upload","mywindow","menubar=1,resizable=1,width=660px,height=390px");
}
Is this achievable and if so, How, based on the code I’ve supplied.
Thanks
use the parameters top and left, e.g.
window.open("index.php?dll=gallery&sub=upload","mywindow","menubar=1,resizable=1,width=660px,height=390px,top=0,left=0");Having said that, managing popup windows can be troublesome. If it’s not necessary for your application, I would simply create a DHTML dialog in your actual page, e.g. jQuery’s dialog, jqueryui.com/demos/dialog .