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.

Contents<br />

Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix<br />

Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii<br />

Chapter 1: Generic HTML Element Objects (Chapter 15) . . . . . . . . 1<br />

<strong>Examples</strong> Highlights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1<br />

Generic Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3<br />

Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3<br />

Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50<br />

Event handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95<br />

Chapter 2: Window and Frame Objects (Chapter 16) . . . . . . . . . 127<br />

<strong>Examples</strong> Highlights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128<br />

Window Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129<br />

Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129<br />

Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153<br />

Event handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188<br />

FRAME Element Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190<br />

Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190<br />

FRAMESET Element Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194<br />

Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194<br />

IFRAME Element Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198<br />

Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198<br />

popup Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201<br />

Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201<br />

Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202<br />

Chapter 3: Location and History Objects (Chapter 17) . . . . . . . . 205<br />

<strong>Examples</strong> Highlights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205<br />

Location Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206<br />

Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206<br />

Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216<br />

History Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218<br />

Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218<br />

Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219

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

Saved successfully!

Ooh no, something went wrong!