Friday 31 August 2012

javascript | alert | getHours| getMinutes | getYear | getMonth | getTime





<script>
function checkdate()
{
var d=new Date();
alert("hours:"+d.getHours());
alert("minutes:"+d.getMinutes());
alert("year:"+d.getYear());
alert("month:"+d.getMonth());
alert("date:"+d.getDate());
alert("day:"+d.getDay());
alert("seconds:"+d.getSeconds());
alert("time:"+d.getTime());
}
</script>
<body>
<input type="button" value="check timing" onclick="checkdate()">
</body>








Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: