Java Script Basics : POP UP BOXES

JavaScript pop up box

Java Script provides the way to create a small window , called POP UP 

BOXES .

1. Alert Box

2. Confirm Box

3. Prompt Box

These box receives input from the user and generate the desired output .




1. Alert Box :-

alert box provides you to display any short message to another small

window. User will have to click "OK" to proceed .

Syntax : alert("Here , Enter Your Text")

Example : click on alert box(below)



Alert box image


2. Confirm Box :-

Confirm Box is used when you want user to verify or accept 

something. the confirm box have both OK and Cancel button.

according your choice you can select any one of them at a time .

Syntax : confirm("Enter your Text")

Example : click on confirm box(below)





Confirm box image


3. Prompt Box :-

Prompt box is used when the user want to input a value for the execution 

of the program. the prompt box have both OK and Cancel buttons.

Syntax : prompt("Please Enter your name" , "Enter your name here")

Example : click on prompt box(below)





Prompt box image


Thank You To All My Reader :
Deepak Gupta
http://www.i-world-tech.blogspot.in/


Related Post :

1Simple Calculator Program in JavaScript

2In Visual Basic : How we Convert our statement in Computer Voice

3Batch programming :- How we Create a simple game in batch programming

4. Animated moving car program : computer graphics in c

5. Introduction to JavaServer Faces - JSF






Comments

Post a Comment