This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> <title> Presentation</title> | |
<script language="JavaScript"> | |
function CalculateAge() | |
{ | |
var birthyear = document.form1.txt.value; | |
var currentyear = new Date(); | |
var age = currentyear.getFullYear(); | |
document.write('They are either ' + (age-birthyear)+ ' or ' + (age-birthyear - 1)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title> The Age Calculator</title> | |
</head> | |
<body> | |
<script language="JavaScript"> | |
function CalculateAge() | |
{ | |
var birthyear = document.form1.txt.value; | |
var currentyear = new Date(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title> The Age Calculator</title> | |
</head> | |
<body> | |
<script language="JavaScript"> | |
function CalculateAge() | |
{ | |
var birthyear = document.form1.txt.value; | |
var currentyear = new Date(); |