新的窗口中设置位置 [英] Set position for new window

查看:122
本文介绍了新的窗口中设置位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我打开一个新的窗口:

hello i open a new window with:

<a 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?

推荐答案

通过提供和左

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

这篇关于新的窗口中设置位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆