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.

186<br />

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

Listing 16-42 (continued)<br />

select.selectedIndex = i<br />

break<br />

}<br />

}<br />

return<br />

}<br />

// Utility function to accept a press of the<br />

// Enter key in the text field as a click of OK<br />

function checkEnter() {<br />

if (window.event.keyCode == 13) {<br />

handleOK()<br />

}<br />

}<br />

<br />

<br />

<br />

Web Site Preferences<br />

<br />

<br />

<br />

<br />

Enter your first name:<br />

<br />

<br />

Select a background color:<br />

<br />

Beige<br />

Antique White<br />

Goldenrod<br />

Lime<br />

Powder Blue<br />

Slate Gray<br />

<br />

<br />

<br />

Select a text color:<br />

<br />

Black<br />

White<br />

Navy Blue<br />

Dark Orange<br />

Sea Green<br />

Teal<br />

<br />

<br />

windowObject.showModalDialog()

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

Saved successfully!

Ooh no, something went wrong!