Results 1 to 2 of 2

Thread: code problem

  1. #1
    Join Date
    Mar 2011

    code problem

    hi there i am new in javascript... i have a code here that doesn't work, can someone help me out?

    <script type="text/javascript">
    var d=new Date();
    var h=d.getHours();
    if (h>22){
    document.write("it is less than 10");
    document.write("it is after 10");

    it doesn't matter if you switch the > to a < it will always output "it is after 10"... what is the deal here

  2. #2
    Join Date
    Sep 2009
    NO its work

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles