Coding for Date Object in JavaScript... with 'document.wtrite' tag .


Coding for Date Object in JavaScript... with 'document.wtrite' tag .


Example of getDay() Tag:-

<html>

<head>

 <script language="javascript">

function ab()

{

var x=new Date();

var y=x.getDay();

document.write("Today ,the Day of week  is:- "+y);


}

</script>

</head>

<body>

<form>

<input type="button" value="Click For view today's day of week" onclick="ab()">

</input>

</body>

</html>

No comments:

Post a Comment