01:198:170 Chapter Notes - Chapter 18, 19: Radio Button, Text Box, Global Variable

65 views3 pages
Event-Driven Programming
Creating Graphical User Interfaces using forms
Input facilities like buttons and checkboxes are known as elements of forms
<form name ="unique_name">
Event handler
is the program that performs the operation that responds to an
event
Event-Based Programming: button, text box, radio button; events associated with them
and how to use event handlers
3 Input Elements:
Text box
<input type= "text" id= "" onchange= "">
Radio button
<input type= "radio" name="" id="" onclick="">
Button
<input type= "button" value="" onclick= "">
How to refer to forms within a page
Go over the Bean Counter program
JavaScript Functions
JavaScript rules for: functions, declarations, return values, function calls, scope of
reference, and local/ global variable reference, forms and functions
Functions are packages for algorithms, they have 3 parts
Name
Identifier for the function
Parameters
The values that the function will computer on, the input to the
function
The list of names for all the function's inputs separated by
commas
When writing the function's statements, the parameters are like
normal variables. The only difference are that they:
Begin with a defined value, the function's input
Don’t have to be declared; no var is needed
Unlock document

This preview shows page 1 of the document.
Unlock all 3 pages and 3 million more documents.

Already have an account? Log in
taupebee294 and 9 others unlocked
01:198:170 Full Course Notes
9
01:198:170 Full Course Notes
Verified Note
9 documents

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

Related Questions