22.06.2015 Views

o_19octlt3v29m1ul81r9513q81i4ra.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

290 Chapter 16<br />

SET UP Open Notepad.<br />

1. In Notepad, type the following:<br />

<br />

<br />

<br />

<br />

JavaScript 101<br />

<br />

<br />

Your first JavaScript page.<br />

<br />

<br />

2. Add some JavaScript to the page, placing it just before the closing tag, as<br />

shown here:<br />

<br />

<br />

<br />

<br />

JavaScript 101<br />

<br />

<br />

Your first JavaScript page.<br />

<br />

alert("hello world");<br />

<br />

<br />

<br />

3. Save the file in Notepad as javascript01.html.<br />

4. View the page within a Web browser. You should receive an alert such as this:<br />

CLEAN UP Close Internet Explorer. Leave the Javascript01.html file open in Notepad<br />

for the next exercise.

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

Saved successfully!

Ooh no, something went wrong!