Popup Windows: resizable

By default popups cannot be resized by the user. This is usually not a problem... most popups just contain small notes or ads. If your popup contains a lot of information, however, it's a nice touch to let the user resize the window to something more convenient. Set the popup to resizable by setting the resizable property to yes in the open() command. For example, this command in the popup script opens a resizable popup:

window.open(href, windowname, 'width=400,height=150,resizable=yes,scrollbars=yes');

which gives us 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.