Friday, March 11, 2016

How to Create a JAVASCRIPT PROMPT box | ALERT BOX | SIMPLE JAVASCRIPT TUTORIAL | blog2life16 programmer

Hello,
In this post,
I will give the code about the PROMPT BOX or we can say ALERT BOX code used in JAVASCRIPT. This is very easy-to-understand and good method to learn JAVASCRIPT.
-----------------------------
The code starts here :
------------------------------

<!DOCTYPE html> 
<html> 
<body> 
<p>Click the button to display an alert box:</p> 
<button onclick="myFunction()">Click it</button> 
<script>function myFunction()
{    
alert("This is an alert box!"); 
} 
</script> 
</body> 
</html>

Screenshots :- 





First Page - Before Clicking
Below Page - After Clicking






This is the simple method to create a PROMPT or ALERT using JAVASCRIPT.
Please comment Below if you want to give new Ideas.
---------
Thank You !
---------

1 comment:

  1. Ive created an alert box like this.. For my project... Thanks.
    Get free 2gb internet.
    www.internetfree.in

    ReplyDelete

Thank You ! For Commenting here.
We respect your Comment and We will reply as soon as possible.
TECHINFOBLOG

Disqus Shortname

Comments System

Disqus Shortname

Comments system