JavaScript to Wish “Good Morning”

18 June 2012

Liverpool  : WISHES FOR A DAY /* This script will display A “Good Morning” Message if the time is less than or equal to 10.Otherwise, it display a “Message Good Day”*/



<script type=”text/javascript”>

var d = new Date();

var time = d.getHours();

if (time <= 10)


document.write(“<h1>Hai Good morning!!!</h1>”);




document.write(“</h1>Good day!!!!!!!</h1>”);





It produces the output as:
if the time is <=10Hai!!!!Good morning
Good day!!!!!!!

News Archive

  • WordPress Development in Liverpool
  • Drupal Development in Liverpool
  • Joomla Development in Liverpool
  • eCommerce Magento Liverpool
  • Web Development Liverpool
  • Web Design Liverpool
  • jQuery development Liverpool
  • Zend framework development Liverpool
  • Airline IBE GDS Integration Navitaire Liverpool
  • Airline IBE GDS Integration Aamadeus Liverpool