












































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In this lecture from the cs101 introduction to computing course, students learn how to add more interactivity to forms using javascript. The basics of form tags, various input types, and the role of client-side scripts in form validation. Students will also explore the advantages and disadvantages of client-side scripting.
Typology: Slides
1 / 52
This page cannot be seen from the preview
Don't miss anything!













































(Web Development Lecture 5)
Focus of the last lecture was on Interactive Forms
But first lets review the tags that are
used in forms
name=“name” method=“get” or “post” action=“URL”
Elements of the form
Password Input Field
type=“password” name=“name” size=“widthInCharacters” maxlength=“limitInCharacters” value=“initialDefaultValue”
Hidden Input
type=“hidden” name=“name” value=“value”
Radio Button Input Element
type=“radio” name=“name” checked value=“selectedValue”
File Upload Input Element
type=“file” name=“name” value=“nameOfSelectedFile” enctype=“fileEncodingType”
Submit Button Input
type=“submit” name=“name” value=“buttonLabel”
8 Possible Values for the “type” Attribute
of tag
Select from a (Drop Down) List
<SELECT name=“name” size=“numberOfDisplayedChoices” multiple
End of the Review of Tags Used in Forms
Now let’s take a look at a form that we constructed last time, and see how we can make it better