I found a tutorial where I can open a centered pop up window… good!
And I also found a tutorial where I can open a pop up window at the upper left side of my main html window… good too!
And how about choosing my X and Y position of my window? Is there anyway I can do this? Not at the top left nor centered…
so let’s say you’re looking at this tutorial…
see the AS:[AS]
_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL(“javascript:window.open(’”+url+"’,’"+winName+"’,’"+“width=”+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top=’+((screen.height/2)-("+h/2+"))+’,left=’+((screen.width/2)-("+w/2+"))+’"+"’);void(0);");
};[/AS]
try changing the bold parts to your desired x and y positions.
[AS]_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL(“javascript:window.open(’”+url+"’,’"+winName+"’,’"+“width=”+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top=’+200+’,left=’+50+’"+"’);void(0);");
};[/AS]all you had to do was change what was in bold to 200 and 50.