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.

208<br />

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

windowObject.location.host<br />

Listing 17-3: Property Picker<br />

<br />

<br />

Property Picker<br />

<br />

var isNav4 = (navigator.appName == “Netscape” &&<br />

navigator.appVersion.charAt(0) >= 4) ? true : false<br />

function fillLeftFrame() {<br />

newURL = prompt(“Enter the URL of a document to show in the left frame:”,””)<br />

if (newURL != null && newURL != “”) {<br />

parent.frames[0].location = newURL<br />

}<br />

}<br />

function showLocationData(form) {<br />

for (var i = 0; i

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

Saved successfully!

Ooh no, something went wrong!