> Pop up box in javascript ~ Online tutorial

Pop up box in javascript

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 boxIn 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>





Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: