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.

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

Listing 15-18 (continued)<br />

newCell.innerText = item1<br />

}<br />

}<br />

<br />

<br />

<br />

<br />

<br />

Row ID<br />

Data<br />

<br />

<br />

firstDataRow<br />

Fred<br />

<br />

<br />

secondDataRow<br />

Jane<br />

<br />

<br />

<br />

<br />

Enter text to be added to the table:<br />

<br />

<br />

<br />

<br />

<br />

Methods<br />

addBehavior(“URL”)<br />

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

Compatibility ✓ ✓<br />

Example<br />

Listing 15-19a is the <strong>JavaScript</strong> code for an external component named<br />

makeHot.htc. Its purpose is to turn the color style property of an object to either a<br />

elementObject.addBehavior()

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

Saved successfully!

Ooh no, something went wrong!