Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
5Activity
P. 1
JavaScript and XHTML Documents

JavaScript and XHTML Documents

Ratings: (0)|Views: 563 |Likes:
Published by tech2click

More info:

Published by: tech2click on Feb 10, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/03/2013

pdf

text

original

 
 JavaScript and XHTMLDocuments
Chapter 5 from the textbook 
 
 JavaScript Execution Environment
 JavaScript executes in a browser
The Window object represents the window
displaying a document
All properties are visible to all scripts
Global variables are properties of the Window object
The Document object represents the documentdisplayed
The document property of Window
Property arrays for forms, links, anchors, …
 
Document Object Model (DOM)
a set of JavaScript objects that represent each
element on the page
we can examine elements' state
e.g. see whether a box is checked
we can change state
e.g. insert some new text into a div
we can change styles
e.g. make a paragraph red

Activity (5)

You've already reviewed this. Edit your review.
Nitheesh Devadiga added this note
f
1 thousand reads
1 hundred reads
jubidiai liked this
Nisha Bangali liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->