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.

252<br />

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

Listing 18-15 (continued)<br />

Congress shall make no law respecting an establishment of religion, or<br />

prohibiting the<br />

free exercise thereof; or abridging the freedom of speech, or of the press; or<br />

the right of the people peaceably to assemble, and to petition the government<br />

for a redress of grievances.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

open([“mimeType”] [, replace])<br />

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

Compatibility ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓<br />

Example<br />

You can see an example of where the document.open() method fits in the<br />

scheme of dynamically creating content for another frame in the discussion of the<br />

document.write() method later in this chapter.<br />

queryCommandEnabled(“commandName”)<br />

queryCommandIndterm(“commandName”)<br />

queryCommandCommandState(“commandName”)<br />

queryCommandSupported(“commandName”)<br />

queryCommandText(“commandName”)<br />

queryCommandValue(“commandName”)<br />

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

Compatibility ✓ ✓ ✓<br />

Example<br />

See the examples for these methods covered under the TextRange object in<br />

Chapter 19 of the <strong>JavaScript</strong> <strong>Bible</strong>.<br />

document.queryCommandEnabled()

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

Saved successfully!

Ooh no, something went wrong!