Pop up box in java script
In this below coding is used to show How do create popup box using javascript.Alert box: | In this type of pop up box some message will be displayed |
confirm box: | In this type of popup box in which message about confimation will be displayed |
Prompt box | In is a type of popup box which display text window in which user can enter something Hence it has two buttons OK or cancel |
Program
<html> <body> <script type="text/javascript"> if(confirm("do you agrred?")) alert("You have agreed"); else input_text=prompt("Enter some string here," "); alert("hi"+input_text); </script> </body> </html> |
0 comments:
Post a Comment