Exercise 1: Display alert box, confirmation box, prompt box and call a function. In this exercise, we taste our first JavaScript program.    

Create a button, when user presses on it, it display an alert box with a message. Create a button, when user presses on it, it display a prompt box for input. User enter some text and it display text either on the web page or an alert box. Create another button when user clicks on it. it displays a confirmation box. Finally create a function and call it by clicking on a button and it displays some text through an alert box.

You are going to match the output below:

Exercise 2: Compute Total Cost of an order. In this exercise, we build a JavaScript program which compute Total cost of coffee. 

JavaScript is used to pre-compute the total cost of an order and display it to the customer before the order is submitted to the server for processing.

You are going to match the output below.

Exercise 3: Pattern Validation. In this exercise, we validate a student registration numbers and semester’s pattern by using JavaScript language.     

Get student registration number and current semester from a form. Validate registration number and semester input by the user using the regular expression: /^ [1-4][A-Z][A-Z][0-9][0-9][A-Z][A-Z][0-9][0-9][0-9]$/ If the student registration format is correct, alert the user with a message, else alert the user with the format DAADDAADDD (for e.g. 1BS01CS001). Validate semester by the user using a regular expression: /^[1-8]$/ If the semester is correct, alert the user with the message, else alert the user to enter valid semester number (1-8).

You are going to match the output below:

Exercise 4: Thumbnail. In this exercise, we build a JavaScript program which show 6 thumbnail images and a main image. 

The main image should change to larger version of thumbnail as soon as the mouse moves over a thumbnail image. You are going to match the output below.

Exercise 5: Navigator Object (Browser’s Name and Version). In this exercise, we use JavaScript’s navigator object. to view browser name and its version.  

The browser’s name is stored in appName property of navigator object. The version of browser is stored in the appVersion property of navigator object.

You are going to match the output below.

Exercise 6: Form Validation. When user fills in a form input element incorrectly and a JavaScript event-handler function detects the error, the function should do several things.  First, it should produce a message on a web page indicating the error to the user that nothing is selected.  Second, it should assist user that username must be between 4 and 8 characters.  Third, it should produce a message if nothing is entered in password field. It should also produce a message if both passwords are not same.  Fourth, if city and country wouldn’t selected from drop down menu, it indicate user a message that city and country has not been selected.  Finally, when user enters data in all fields correctly, he receives a message of thanks for submitting correct information. You are going to match the output below.

Exercise 7: Form Validation. When user fills in a form input element incorrectly and a JavaScript event-handler function detects the error, the function should do several things.  First, it should produce a message on a web page indicating the error to the user that nothing is selected.  Second, it should assist user about the correct telephone pattern.  Thirdly, if country wouldn’t selected from drop down menu, it indicate user that country has not been selected.  Finally, when user enters all fields correctly, he receive a message of thanks for submitting correct message.

You are going to match the output below.

Exercise 1: Display alert box, confirmation box ... -

Create a button, when user presses on it, it display a prompt box for input. User enter some text and it display text either on the web page or an alert box.

546KB Sizes 2 Downloads 221 Views

Recommend Documents

Box Tops Contest 1.pdf
Send completed sheet to school. More collection forms are available on www.btfe.com. 1. 2. 3. Page 1. Box Tops Contest 1.pdf. Box Tops Contest 1.pdf. Open.

Sweet-Box-Tutorial-1.pdf
Sign in. Loading… Page 1. Whoops! There was a problem loading more pages. Retrying... Sweet-Box-Tutorial-1.pdf. Sweet-Box-Tutorial-1.pdf. Open. Extract.

Cheap Starhub Box Singapore Hd Tv Set Top Box Black Box S ...
Cheap Starhub Box Singapore Hd Tv Set Top Box Blac ... 5 Icam Renewal Free Shipping & Wholesale Price.pdf. Cheap Starhub Box Singapore Hd Tv Set Top ...

Cheap Binmer E5 Plastic Box 18650 Battery Holder 18650 Box ...
Cheap Binmer E5 Plastic Box 18650 Battery Holder 186 ... e Color Optional Free Shipping & Wholesale Price.pdf. Cheap Binmer E5 Plastic Box 18650 Battery ...

Box for G Suite
popular business applications like Adobe Acrobat, Salesforce, IBM, Slack and more. “Box and G Suite together allow us to leverage Docs for working files, like.

Cheap Breakout Box Obdii Breakout Box Obd2 Car Protocol ...
Cheap Breakout Box Obdii Breakout Box Obd2 Car Prot ... t Box Auto Connector Car Detector Free Shipping.pdf. Cheap Breakout Box Obdii Breakout Box Obd2 ...

Box It.pdf
5 (i) OX a b = + μ ( ) uuur B1. (ii) ( ). ( ). 3 or 3 oe. 3 3 ... Box It.pdf. Box It.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Box It.pdf. Page 1 of 6.

BOX TOPS.pdf
Loading… Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. BOX TOPS.pdf. BOX TOPS.pdf. O

Box Tops.pdf
Loading… Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Box Tops.pdf. Box Tops.pdf. Open. Extract

Box 1 1 Aakash Sharma 2 Peter Baird layspmb ... - PDFKUL.COM
[email protected]. Box 4. 1 Rashid Kaleem [email protected]. 2 Nrupul Ponugoti [email protected]. 3 Rohit Mahnot [email protected]. 4 J.B. Raftus. [email protected]. 5 Sarah Overmyer [email protected]. 6 Stefan Allen skallen@utexas.

pandora's box pdf
There was a problem loading more pages. pandora's box pdf. pandora's box pdf. Open. Extract. Open with. Sign In. Main menu. Displaying pandora's box pdf.

Feb, box tops.pdf
Page 1 of 1. OWNER'S. GUIDE. NV751. MANUEL DU. PROPRIÉTAIRE. NV751. MANUAL DEL. USUARIO. NV751. www.PoweredLiftAway.com 800.798.7398. ®. Page 1 of 1. Feb, box tops.pdf. Feb, box tops.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Feb

PO Box 5466, Aleppo, Syria
audiences through a range of media the on-going successes and impacts of the SARD-SC. Wheat project to ... social media platforms, including Facebook, Twitter, and LinkedIn ... Thorough knowledge of all major Microsoft office applications.

Menu Box Catering.pdf
Menu Box Catering.pdf. Menu Box Catering.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Menu Box Catering.pdf.

Opening Pandora's Box
School of Informatics, Indiana University / Department of Adaptive. Machine ... to exploit this by building androids, rather than hoping for people to gradually .... for creating interactive robots and to find effective design principles, so it is im

sound box hop.pdf
Sign in. Page. 1. /. 2. Loading… Page 1 of 2. Sound box hop. Page 1 of 2. Page 2 of 2. Sound box hop. Page 2 of 2. sound box hop.pdf. sound box hop.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying sound box hop.pdf.

Plate and Box Girders - Free
Plate and box girders are used mostly in bridges and industrial buildings, where large loads and/ ...... National Steel Construction Conference, Washington, D.C..

PO Box 5466, Aleppo, Syria
Multinational CGIAR project to support agricultural research for development of strategic crops ... Thorough knowledge of all major Microsoft office applications.

cereal box example.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. cereal box ...

05.31.16-Box-Score.pdf
Padres 1st (Padres 0, Mariners 0) -- J. Jay flies out to N. Aoki. W. Myers ... L. Sardinas singles to left field. N. Aoki .... Displaying 05.31.16-Box-Score.pdf. Page 1 ...

Feb, box tops.pdf
Sarah Fisk. [email protected]. Volunteer Coordinator for Box Tops for Education. Page 1 of 1. Feb, box tops.pdf. Feb, box tops.pdf. Open. Extract. Open with.