100% found this document useful (1 vote)
525 views

JavaScript CSE

The document describes creating a user registration form with fields like name, address, username, password and validating the form fields. It also discusses designing a job registration form using HTML elements like textboxes, radio buttons, textareas, dropdowns, file upload, labels, passwords and checkboxes. Finally, it talks about creating a web page using JavaScript that prompts the user for name, welcomes the user, displays current date, shows last modified date and provides advice in the browser status bar.

Uploaded by

bhuvangates
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
525 views

JavaScript CSE

The document describes creating a user registration form with fields like name, address, username, password and validating the form fields. It also discusses designing a job registration form using HTML elements like textboxes, radio buttons, textareas, dropdowns, file upload, labels, passwords and checkboxes. Finally, it talks about creating a web page using JavaScript that prompts the user for name, welcomes the user, displays current date, shows last modified date and provides advice in the browser status bar.

Uploaded by

bhuvangates
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Create a User Registration form with First Name, Last name,

Address, City, State, Country, Pincode, Username and Password


fields for a General login webpage and satisfy the following
criteria:
Create a validate ( ) function that does the following:
(a) Checks that the First Name, Last Name, City, Country,
Username, and Password fields are filled out.
(b) Checks that the Pincode is exactly 6 numerics.
(c) Checks that the state is exactly two characters.
(d) Checks that the email is a valid email address.
false if email has fewer than 6 characters
false if email does not contain an @ symbol
false if email does not contain a period (.)
true otherwise
OUTPUT:

BHUVANESWARAN B / AP (SS) / CSE / REC - 2

BHUVANESWARAN B / AP (SS) / CSE / REC - 3

BHUVANESWARAN B / AP (SS) / CSE / REC - 4

BHUVANESWARAN B / AP (SS) / CSE / REC - 5

BHUVANESWARAN B / AP (SS) / CSE / REC - 6

Design a Job Registration form / Sign Up form using HTML. [The


Form should contains Text box [name], Radio button [sex], Text
area [comments], List Items [country], File [Browse], Label
Field, Password field [password] and check box.
OUTPUT:

BHUVANESWARAN B / AP (SS) / CSE / REC - 7

BHUVANESWARAN B / AP (SS) / CSE / REC - 8

BHUVANESWARAN B / AP (SS) / CSE / REC - 9

Create a page with JavaScript to do the following. These can


all be on one page.
(a) Prompt the user for their name.
(b) Use a pop-up box to welcome the user by name.
(c) Display the current date on the page in the following
format: April 30, 2014. Do not display the time. Do not "hard
code" the date; if I load the page tomorrow, I should get a
different date than if I load it today.
(d) Display the last modified date of the document.
(e) Put some useful advice, on any subject, in the status line
of the browser.
OUTPUT:

BHUVANESWARAN B / AP (SS) / CSE / REC - 10

BHUVANESWARAN B / AP (SS) / CSE / REC - 11

Develop a web page that allows the user to enter all the
details of the passenger (name, age, emailid , gender).Write a
client side scripting code to validate the emailid ,age and
gender, where email id should consists of the special symbol
@and period(.),where age between 1 to 100 and gender is male
or female.
OUTPUT:

BHUVANESWARAN B / AP (SS) / CSE / REC - 12

BHUVANESWARAN B / AP (SS) / CSE / REC - 13

BHUVANESWARAN B / AP (SS) / CSE / REC - 14

Create a form that gets input of several lines of text and a


search character. On clicking the search button in the client
form invoke suitable script function to display the number of
occurrences of the character in the text using suitable string
methods.
OUTPUT:

BHUVANESWARAN B / AP (SS) / CSE / REC - 15

BHUVANESWARAN B / AP (SS) / CSE / REC - 16

BHUVANESWARAN B / AP (SS) / CSE / REC - 17

You might also like