5
BIT 116:JavaScript

BIT 116:JavaScript. A few useful (binary) HTML tags: h1 –Level 1 header: big and bold p –Paragraph (enforces line space before/after) b –bold i –italic

Embed Size (px)

DESCRIPTION

3 Due Dates Due today: –Chapter 2 Reading Quiz In-class: ICE 2 (spans today & next class) Due next lecture: –Nothing Due in a week (Wed, Oct 12) –Assignment 1 –Chapter 3 Reading Quiz

Citation preview

Page 1: BIT 116:JavaScript. A few useful (binary) HTML tags: h1 –Level 1 header: big and bold p –Paragraph (enforces line space before/after) b –bold i –italic

BIT 116:JavaScript

Page 2: BIT 116:JavaScript. A few useful (binary) HTML tags: h1 –Level 1 header: big and bold p –Paragraph (enforces line space before/after) b –bold i –italic

A few useful (binary) HTML tags:

• h1– Level 1 header: big and bold

• p– Paragraph (enforces line space before/after)

• b– bold

• i– italic

BIT 116: Scripting 2

Page 3: BIT 116:JavaScript. A few useful (binary) HTML tags: h1 –Level 1 header: big and bold p –Paragraph (enforces line space before/after) b –bold i –italic

BIT 116: Scripting 3

Due Dates• Due today:

– Chapter 2 Reading Quiz• In-class: ICE 2 (spans today & next class)• Due next lecture:

– Nothing

• Due in a week (Wed, Oct 12)– Assignment 1– Chapter 3 Reading Quiz

Page 4: BIT 116:JavaScript. A few useful (binary) HTML tags: h1 –Level 1 header: big and bold p –Paragraph (enforces line space before/after) b –bold i –italic

BIT 116: Scripting 4

Today (and beyond)• Data Types

– concatenation vs addition– parseInt(), parseFloat(), and isNaN()

• document.getElementById()• Forms

– purpose (server- vs client-side)– basic structure– using JavaScript with forms– .value– validation (easily circumvented, but useful)– String emptiness, equality– .innerHTML

Page 5: BIT 116:JavaScript. A few useful (binary) HTML tags: h1 –Level 1 header: big and bold p –Paragraph (enforces line space before/after) b –bold i –italic

BIT 116: Scripting 5

Semi-colons• Don’t forget them – they’re required for

this class!!

•<script type=“text/javascript”>–alert(“Hello from BIT 116!”);

•</script>