method for opening a browser window.
someNewWin = window
, name, options )
- url should be obvious
- options allow you to specify the nature of your new window. The options you give should be in a form something like 'op_scroll=0,resizable=1,status=0'. There are a whole stack of options including some to allow you to have a non-resizable window and to set its height and width.
I can't find an ecmsa document to check the standard against - plenty of broken links but nothing substantial in the way of html. There are pdf documents of the most recent version available on the site at the time of writing (335, December 2001) at http://www.ecma.ch/ecma1/STAND/ecma-335.htm. If anybody has anything better, please /msg me. Here's a document with a bit more information, but it's ie specific
, so be wary.
And here's an example:
var winflags = "width=5,height=5,toolbar=0,location=0,";
winflags = winflags+"directories=0,menubar=0,scrollbars=0,";
winflags = winflags+"op_scroll=0,resizable=1,status=0";