11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 12-1: Feature Parameter Values for window.open()<br />

Feature Parameter Value Description Example<br />

otherwise.<br />

screeny Pixel value Distance up and<br />

down from the<br />

screen origin<br />

where window<br />

should be opened.<br />

Netscape-specific<br />

syntax; use top<br />

otherwise.<br />

scrollbars yes/no Indicates whether<br />

or not scrollbars<br />

should show.<br />

status yes/no Indicates whether<br />

or not the status<br />

bar should show.<br />

titlebar yes/no Indicates whether<br />

or not the title bar<br />

should show.<br />

toolbar yes/no Indicates whether<br />

or not the toolbar<br />

menu should be<br />

visible.<br />

top Pixel value IE-specific feature<br />

to indicate position<br />

down from the top<br />

corner of the<br />

screen to position<br />

the window; use<br />

screeny<br />

otherwise.<br />

width pixel value <strong>The</strong> width of the<br />

window. You may<br />

want to use<br />

innerWidth<br />

instead.<br />

screeny=<br />

scrollbars=<br />

status=<br />

titlebar=<br />

toolbar=<br />

top=<br />

width=<br />

z-lock yes/no Specifies if the zindex<br />

should be<br />

set so that a<br />

window cannot<br />

change its<br />

stacking order<br />

relative to other<br />

windows even if it<br />

gains focus.<br />

z-lock=<br />

Note Typically, in modern <strong>JavaScript</strong> implementations you can use 1 for yes and 0 for no for<br />

the features using yes/no values. However, for pure backward compatibility, the yes/no<br />

syntax is preferred.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!