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.

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

elementObject.outerHTML<br />

Listing 15-13 (continued)<br />

H1 {font-size:18pt; font-weight:bold; font-family:”Comic Sans MS”, Arial, sansserif}<br />

.heading {font-size:20pt; font-weight:bold; font-family:”Arial Black”, Arial,<br />

sans-serif}<br />

<br />

<br />

function setGroupLabelAsText(form) {<br />

var content = form.textInput.value<br />

if (content) {<br />

document.all.label1.outerText = content<br />

}<br />

}<br />

function setGroupLabelAsHTML(form) {<br />

var content = form.HTMLInput.value<br />

if (content) {<br />

document.all.label1.outerHTML = content<br />

}<br />

}<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

ARTICLE I<br />

<br />

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

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

the press; or the right of the people peaceably to assemble, and to petition the<br />

government for a redress of grievances.<br />

<br />

<br />

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

Saved successfully!

Ooh no, something went wrong!