Wednesday, January 25, 2012

First Application Using JavaScript


Script code:
<script language="javascript">
function displayDateTime()
{
     alert(Date());
}
</script>

Html code:
<button type="button" onclick="displayDateTime()">DisplayDateTime</button>

No comments: