"Craig" <> wrote in message
news:q%8Zb.26469$...
<snip>
> eval("newWindow = window.open('','"+ id
>+"','toolbar=0,scrollbars=0,location=0,statusbar= 0,menubar=0,
>resizable=0,width=" +WINWIDTH+ ",height=" +WINHEIGHT+ "')");
This operation does not require the - eval - function. eval is almost
never needed in javascript.
<URL:
http://jibbering.com/faq/#FAQ4_40 >
newWindow = window.open('', id,
('scrollbars=yes,resizable=yes,width=" +
WINWIDTH+ ",height=" +
WINHEIGHT));
It is never a good idea to open a window that is not resizable, it makes
no significant difference to the appearance and if not resizable the
onus is on the programmer to open the window the correct size. There are
so many variable (and some unknowable) factors involved in determining
the correct size for a new window that no adequate
cross-browser/configuration code exists for the task. So the only way of
guaranteeing that the user will be able to access the content of a
window is to leave it resizable and preferably enable the scrollbars. If
any one window feature is specified then any unspecified features will
be set to off.
<snip>
> newWindow.document.close
^^^
The close function of the document should be called to close the
document. an expression that does no more that refer to it will not
achieve that.
<snip>
Richard.