Review• Write the basic JavaScript Syntax• What is the function of the <script> tag?• What is the use of the semi-colon?• ...
ALERT BOX• An alert box is often used to “alert” the user for  some information message. It contains a single  statement a...
<html><body><script type= “text/javascript”>alert(“Oops! You pressed the wrong key! Try  Again!”);</script></body></html>
Confirm Box• The confirm box is often used if you want the  user to “confirm” or accept something. It contains  question a...
Syntax of an Confirm Box<html><body><script>confirm(“Are you sure all the information you  entered are correct”);</script>...
Prompt box• A prompt box can be used to allow the user to input data  before entering a page. It contains a question, an e...
Syntax of a prompt box<html><body><script>prompt(“Please enter your name”);</script></body></html>
COMPUQUIZ/ EXERCISES1. Write the  JavaScript  code to  display the  following:
4. Used to allow user to input data.5. Used to allow user to accept something.
Assignment/Agreement•Start working your web page for your final requirement to pass the subject.
Javascript alert and confrim box
Upcoming SlideShare
Loading in …5
×

Javascript alert and confrim box

662 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
662
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
9
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Javascript alert and confrim box

  1. 1. Review• Write the basic JavaScript Syntax• What is the function of the <script> tag?• What is the use of the semi-colon?• Is Javascript can be written in toggle case? Why?• What is the standard JavaScript command for displaying text?• Which sections of the html we can write/appear the JavaScript codes?
  2. 2. ALERT BOX• An alert box is often used to “alert” the user for some information message. It contains a single statement and an OK button. When an alert box pops up, the user needs to click the OK button to proceed. (Note: the browser settings is Filipino)
  3. 3. <html><body><script type= “text/javascript”>alert(“Oops! You pressed the wrong key! Try Again!”);</script></body></html>
  4. 4. Confirm Box• The confirm box is often used if you want the user to “confirm” or accept something. It contains question and the OK and the CANCEL buttons. When a confirm box pops up, the user needs to click either OK or CANCEL button to proceed. (Note: the browser settings is Filipino)
  5. 5. Syntax of an Confirm Box<html><body><script>confirm(“Are you sure all the information you entered are correct”);</script></body></html>
  6. 6. Prompt box• A prompt box can be used to allow the user to input data before entering a page. It contains a question, an empty box called “textfield”, and OK and Cancel button. When prompt box pops up, the user needs to click either the OK or the Cancel button to proceed after inputting the data.
  7. 7. Syntax of a prompt box<html><body><script>prompt(“Please enter your name”);</script></body></html>
  8. 8. COMPUQUIZ/ EXERCISES1. Write the JavaScript code to display the following:
  9. 9. 4. Used to allow user to input data.5. Used to allow user to accept something.
  10. 10. Assignment/Agreement•Start working your web page for your final requirement to pass the subject.

×