Results 1 to 1 of 1
  1. #1
    Deergab's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    92
    Reputation
    30
    Thanks
    5

    What did I do wrong? First time using JavaScript!

    This question is posted on several communities one here others are all in a webdev commmunity.


    Its my first time using JavaScript I'm trying to make the utctime and localtime to appear, but its not showing what did I do wrong here?
    https://i53.tinypic.com/358a22w.png My work
    Code:
    <HTML>
    <head><title>Displaying Times and Dates</title></head>
    <body>
    <h1>Current Date and Time</h1>
    <p>
    <script language="JavaScript" type="text/javascript"> 
    now = new Date(); 
    localtime = now.toString();
     utctime = now.GMTString();
     document.Write ("<b>localtime</b>" + localtime + "</br>");
     document.Write("<b>utctime</b>" + utctime); 
     </script> 
    </p>
    </body>
    </html>
    Here's what it supposed to look like got it from the tutorial
    https://i55.tinypic.com/wl4qar.png
    https://i52.tinypic.com/1zyv7o9.png

    I'm going to bed I hope tomorrow I get some answers.
    Both this and the one I made didn't even show the current time
    Last edited by Deergab; 07-21-2011 at 01:20 AM.

Similar Threads

  1. my new sig with my first time using c4d
    By dk173 in forum Showroom
    Replies: 10
    Last Post: 05-18-2009, 04:58 PM
  2. Yay First time Using PhotoShop :D
    By Slatz in forum Showroom
    Replies: 13
    Last Post: 10-23-2008, 09:50 AM
  3. whats did i do wrong? do you understand what this means
    By Gourav2122 in forum Hardware & Software Support
    Replies: 17
    Last Post: 07-05-2008, 11:25 AM
  4. what did i do wrong?
    By mpghhackersrock123 in forum Visual Basic Programming
    Replies: 10
    Last Post: 10-11-2007, 04:35 PM
  5. What did I do wrong???
    By ltkort213 in forum WarRock - International Hacks
    Replies: 7
    Last Post: 06-11-2007, 08:50 AM