开发者

Set position for new window

开发者 https://www.devze.com 2022-12-20 19:53 出处:网络
hello i open a new window with: <a 开发者_Go百科href =\"javascript:NewWindow =window.open(\'Default.aspx\', \'NewWindow\' , \'width=400, height=450\'); NewWindow.focus()\">Hilfe</a>

hello i open a new window with:

<a 开发者_Go百科href ="javascript:NewWindow =window.open('Default.aspx', 'NewWindow' , 'width=400, height=450'); NewWindow.focus()">Hilfe</a>

at the moment the new window appears in the upper left corner. how can i set the position, so it appears somewhere else?


By providing top and left:

window.open('Default.aspx', 'NewWindow' , 'top=100, left=100, width=400, height=450')
0

精彩评论

暂无评论...
验证码 换一张
取 消