Tyzak
Tyzak

Reputation: 2436

Set position for new window

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?

Upvotes: 2

Views: 2247

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039160

By providing top and left:

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

Upvotes: 1

Related Questions