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.

132<br />

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

Listing 16-5: Setting the Default Status Message<br />

<br />

<br />

window.defaultStatus property<br />

<br />

window.defaultStatus = “Welcome to my Web site.”<br />

<br />

<br />

<br />

Microsoft<br />

Netscape<br />

<br />

<br />

If you need to display single or double quotes in the statusbar (as in the second<br />

link in Listing 16-5), use escape characters (\’ and \”) as part of the strings being<br />

assigned to these properties.<br />

dialogArguments<br />

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

Compatibility ✓ ✓ ✓<br />

Example<br />

See Listing 16-38 for the window.showModalDialog() method to see how arguments<br />

can be passed to a dialog box and retrieved via the dialogArguments<br />

property.<br />

dialogHeight<br />

dialogWidth<br />

windowObject.dialogHeight<br />

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

Compatibility ✓ ✓ ✓

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

Saved successfully!

Ooh no, something went wrong!