Program No2 (1)
Program No2 (1)
Processor.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Processor Page</title>
</head>
<body>
<h2>Form Data Received:</h2>
<script type="text/javascript">
// Get query string from the URL
var queryString = window.location.search;
document.getElementById("dis").value=date+"
/"+month+"/"+year;
}
</script>
<form> <input type="text" id="dis" />
<br />
<input type="button" value="Display Date"
onclick="display()" />
</form>
</body>
</html>
Source code for Event Click:
<!doctype html>
<html>
<head>
<script>
function hiThere() {
alert('Hi there!');
}
</script>
</head>
<body>
<button type="button"
onclick="hiThere()"
style="margin-left: 50%;">
Click me event
</button>
</body>