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.

324<br />

IMG.name<br />

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

Example<br />

The image in The Evaluator page is not defined as an image map. Thus, if you<br />

type the following statement into the top text box, the property returns false:<br />

document.myIMG.isMap<br />

loop<br />

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

Compatibility ✓ ✓ ✓<br />

Example<br />

See Listing 22-3 for the dynsrc property to see the loop property in action.<br />

lowsrc<br />

lowSrc<br />

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

Compatibility ✓ ✓ ✓ ✓ ✓ ✓<br />

Example<br />

See Listing 22-5 for the image object’s onLoad event handler to see how the<br />

source-related properties affect event processing.<br />

name<br />

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

Compatibility ✓ ✓ ✓ ✓ (✓) ✓ ✓ ✓<br />

Example<br />

You can use The Evaluator to examine the value returned by the name property<br />

of the image on that page. Enter the following statement into the top text box:<br />

document.myIMG.name<br />

Of course, this is redundant because the name is part of the reference to the object.

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

Saved successfully!

Ooh no, something went wrong!