15.02.2013 Views

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

234<br />

document.height<br />

<strong>JavaScript</strong> <strong>Examples</strong> <strong>Bible</strong>: The Essential Companion to <strong>JavaScript</strong> <strong>Bible</strong><br />

Listing 18-5 (continued)<br />

M<br />

o<br />

r<br />

e<br />

<br />

C<br />

o<br />

p<br />

y<br />

<br />

<br />

<br />

<br />

<br />

<br />

frames<br />

NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5<br />

Compatibility ✓ ✓ ✓<br />

Example<br />

See Listings 16-7 and 16-8 (in Chapter 2 of this book) for examples of using the<br />

frames property with window objects. The listings work with IE4+ if you swap references<br />

to the window with document.<br />

height<br />

width<br />

NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5<br />

Compatibility ✓ ✓<br />

Example<br />

Use The Evaluator (Chapter 13 in the <strong>JavaScript</strong> <strong>Bible</strong>) to examine the height<br />

and width properties of that document. Enter the following statement into the top<br />

text box and click the Evaluate button:<br />

“height=” + document.height + “; width=” + document.width

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

Saved successfully!

Ooh no, something went wrong!