15.02.2013 Views

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

402<br />

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

navigator.cpuClass<br />

appMinorVersion<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 two<br />

related version properties of your IE browser(s). Type the following two statements<br />

into the top text box and observe the results:<br />

navigator.appVersion<br />

navigator.minorAppVersion<br />

There is a good chance that the values returned are not related to the browser version<br />

number shown after MSIE in the appVersion value.<br />

cookieEnabled<br />

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

Compatibility ✓ ✓ ✓ ✓<br />

Example<br />

Use The Evaluator to see the value of the navigator.cookieEnabled property<br />

on your browsers. Enter the following statement into the top text box:<br />

navigator.cookieEnabled<br />

Feel free to change the cookie preferences setting temporarily to see the new<br />

value of the property. You do not have to relaunch the browser for the new setting<br />

to take effect.<br />

cpuClass<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 see how IE reports the<br />

cpuClass of your PC. Enter the following statement into the top text box:<br />

navigator.cpuClass

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

Saved successfully!

Ooh no, something went wrong!