Popup Windows: left & top

left and top set the position of the popup on the screen. If you don't put left and top the browser puts the popup where it wants. For example, this command in the popup script puts the popup left from the left of the screen and top from the top:

window.open(href, windowname, 'width=250,height=150,left=50,top=100,scrollbars=yes');

gives us this popup: this popup.

About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.