How can I open a HTML pop up window?

Hi everyone!

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…

Thanks!

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.

Thanks for your help, but I’m a beginner / medium Flash Designer…
Imagine that I want my window at
x= 50
y=200

Can you write me the right code?

Thanks a lot.

[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.

Hi!

Now I’m done! :slight_smile:

Thanks a lot. It works!

Now that I see you are expert, can you help me with this problem?
http://www.kirupaforum.com/forums/showthread.php?t=69615

Thanks… I’m learning a lot here in Kirupa.com
I never Thought a forum could be so helpful! :smiley: