PDA

View Full Version : Open in new window


clems1960
05.02.2002, 00:03
I know that you can open a link in a new window but is there some way to position the window on the screen? If so can you tell me how please?

bratta
05.02.2002, 14:35
Yes. But then you have to use window.open to open the window.

ex: window.open("my_url","foo","left=200,top=200")

That should work. If your using the coolMenus you have to add that to the onclick event of the item, example:

oM.makeMenu('1sub10','top1','Different class','script/index.asp?new=1','',0,0,'','','','','','','','wind ow.open("my_url","foo","left=200,top=200")')

-Thomas Brattli-
http://www.bratta.com/
http://www.dhtmlcentral.com/