Professional Documents
Culture Documents
IGNOU Guest House Reservation
IGNOU Guest House Reservation
<html>
<head>
<script>
function IGNOU() {
var fname =
document.forms["RegForm"]["First Name"];
var lname =
document.forms["RegForm"]["Last Name"];
var ID =
var Arrival =
document.forms["RegForm"]["Date of Arrival"];
var Departure =
document.forms["RegForm"]["Date of Departure"];
var Country =
document.forms["RegForm"]["Country"];
var Persons =
document.forms["RegForm"]["Number of Persons"];
var Req =
var Payment =
document.forms["RegForm"]["Payment Method"];
if (fname.value == "") {
fname.focus();
return false;
if (lname.value == "") {
name.focus();
return false;
if (ID.value == "") {
return false;
if (Arrival.value == "") {
Arrival.focus();
return false;
if (Departure.value == "") {
Departure.focus();
return false;
if (Country.value == "") {
Country.focus();
return false;
if (Persons.value == "") {
Persons.focus();
return false;
}
if (Payment.value == "") {
Payment.focus();
return false;
</script>
<style>
div {
box-sizing: border-box;
width: 100%;
float: left;
align-content: center;
align-items: center;
form {
margin: 0 auto;
width: 600px;
}
</style>
</head>
<body>
<p>
<option>AMERICA</option>
<option>JAPAN</option>
<option>INDIA</option>
<option>CHINA</option>
<option>IRAN</option>
</select>
<br />
<label>
<br>
<br>
<br />
<input type="submit"
<input type="submit"
<input type="reset"
</p>
</form>
</body>
</html>
Output: