#8 Javascripts

#8 Javascripts - HTML ConceptsandTechniques FourthEdition...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
HTML Concepts and Techniques Fourth Edition Project 9 Integrating JavaScript and HTML
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Project 9: Integrating JavaScript and HTML 2 Project Objectives Discuss how to integrate JavaScript and HTML Insert <script> tags on a Web page Define and describe JavaScript variables Extract the current system date Calculate the number of days from the current date to a future date
Background image of page 2
Project 9: Integrating JavaScript and HTML 3 Project Objectives Describe the write() method of the document object Save the HTML file and test the Web page Write a dynamic message to a Web page Write a user-defined function that changes the color of the browser’s scroll bar
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Project 9: Integrating JavaScript and HTML 4 Project Objectives Construct a URL from a select list option choice Use the document’s location property to link to a new Web page Use the lastModified property to display the last modified document date Print an HTML file
Background image of page 4
Project 9: Integrating JavaScript and HTML 5 Introduction JavaScript is an object-based programming language that provides functionality to Web pages An object is a person, place, or thing A built-in object is a JavaScript object that neither depends on nor belongs to another object Properties are attributes of objects and describe an object’s characteristics Methods are actions that an object can perform An event is the result of an action, such as a mouse click or a document loading
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Project 9: Integrating JavaScript and HTML 6 Opening an HTML File Start Notepad, and, if necessary, maximize the window. If Word Wrap is not enabled, click Format on the menu bar and then click Word Wrap to enable it With the USB drive plugged into your computer, click File on the menu bar and then click Open on the File menu If necessary, click the Look in box arrow and then click USB Drive (G:)
Background image of page 6
Project 9: Integrating JavaScript and HTML 7 Opening an HTML File Double-click the Project09 folder and then double-click the ProjectFiles folder in the list of available folders If necessary, click the Files of type box arrow and then click All Files Double-click jeffersoncounty.htm in the list of files
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Project 9: Integrating JavaScript and HTML 8 Opening an HTML File
Background image of page 8
Project 9: Integrating JavaScript and HTML 9 Entering the Starting <script> and Comment Tags Click the blank line (line 30) below the <p
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/14/2011 for the course COMPUTER 091 taught by Professor Rajivsir during the Summer '11 term at MIT.

Page1 / 48

#8 Javascripts - HTML ConceptsandTechniques FourthEdition...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online