<html>
<head>
<title>Javascript Alert Box</title>
<script type="text/javascript">
function Alert() {
alert ("This is a Sample alert message!");
}
</script>
</head>
<body>
<form>
<input type="button" value="Click Here" onclick="Alert();" />
</form>
</body>
</html>
<html>
<head>
<title>Javascript Confirm Box</title>
<script type="text/javascript">
function getConfirmation(){
var conf_box = confirm("Are you go to www.freetimelearning.com ?");
}
</script>
</head>
<body>
<form>
<input type="button" value="Click Here" onclick="getConfirmation();" />
</form>
</body>
</html>
<html>
<head>
<title>Javascript Prompt Box</title>
<script type="text/javascript">
function getBook(){
var book = prompt("Enter Book Name : ", "");
document.write("Your book name is : " + book);
}
</script>
</head>
<body>
<form>
<input type="button" value="Click Here" onclick="getBook();" />
</form>
</body>
</html>