01:198:170 Lecture Notes - Lecture 14: Javascript, Radio Button, Code Reuse

39 views3 pages
taupebee294 and 9 others unlocked
01:198:170 Full Course Notes
9
01:198:170 Full Course Notes
Verified Note
9 documents

Document Summary

Form id: de ne form itself; allows you to put more than one button on one page together. Radio button: highlights when you click; if they have the same name, only one will highlight. On click: where you insert your javascript. Imbedded javascript: disp. value: what is displayed in the text box. Code reuse (write once, use multiple times) Reduce complexity (you just do the code once) Problem resolution (if there"s an area of code not working, you could easily go to the function and nd out what"s wrong) Organization (helps keep program organized by lining up functions together) Simplify onclick= (inside onclick, you just have one statement dealing w/ the function; don"t have to put as much code into it) Fundamental building blocks of javascript: speci c set of code that will perform a task. Have to give function a name (descriptive) How you get data into the function. Just like when you create an if statement.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents