Lecture-6 Dialog Boxes
Lecture-6 Dialog Boxes
Web Technologies
BCA
Semester: I
Paper code:-BCA 105T
</head>
<body>
<script language="javascript" type = "text/javascript">
function Warning()
{
alert ("Warning you have not filled everything");
}
</script>
© Institute of Information Technology and Manage
ment, D-29, Institutional Area, Janakpuri, New Delh
i-110058
<p>Click the button to check the Alert Box functionality</p>
<form>
<input type="button" value="Click Me" onclick="Warning();"
>
</form>
</body>
</html>
<script type="text/javascript">
function Confirmation()
{
var Val = confirm("Do you want to continue ?");
if (Val == true) {
document.write(" CONTINUED!");
return true;
} else {
document.write("NOT CONTINUED!");
return false;
}
}
</script>
</html>
<script type="text/javascript">
function Value(){
var Val = prompt("Enter your name : ", "Please enter your name");
document.write("<h1> Hello " + Val + ", Welcome to Javascript
Programming!</h1>");
}
</script>
© Institute of Information Technology and Manage
ment, D-29, Institutional Area, Janakpuri, New Delh
i-110058
<p>Click the button to check the Prompt Box functionality</p>
<form>
<input type="button" value="Click Me" onclick="Value();" />
</form>
</body>
</html>