Tuesday, May 16, 2017

IF condition in HTML using java script

<script language= "javascript"type="text/javascript">
//write a "Good morning" greeting if
// the time is less than 10
var d=new Date()
var time =dgetHours()
if(time<10)
{
document.write ("Good Morning")
}
</script>

No comments:

Post a Comment