Javascript - Finish Regex, Element Access, Form Processing, Positioning




CS174

Chris Pollett

Nov 7, 2016

Outline

Slash Patterns

Last week, we were talking about pattern matching in Javascript. We said there was a String.search method that could take patterns, we gave some simple example patterns, and talked about the use of '.', '()', '[]', '^', '$', '\'. Today, we start by discussing slash patterns.

Yet more special characters

Pattern Modifiers

More Pattern Methods

Execution Environment

Document Object Model

Element Access in Javascript

More on Element Access

Events and Event Handling

More on Event Handling

Validating Forms

Quiz

Which of the following statements is true?

  1. You can write to the current document in Javacript using the write method.
  2. Only Array's in Javascript have a prototype property.
  3. To create an object in Javascript you first need to declare a class.

Quiz

Which of the following statements is true?

  1. All Javascript statements must be terminated with a semicolon.
  2. Javascript on a web page is only evaluated after the browser has rendered the page.
  3. Functions are objects in Javascript.

DOM 2

The Navigator Object

Element Positioning

Moving Elements

Element Visibility, Colors and Fonts