www.webdeveloper.com
Results 1 to 3 of 3

Thread: I have no error and yet is not working on my google chrome and firefox.confused.

  1. #1
    Join Date
    Sep 2013
    Posts
    2

    Post I have no error and yet is not working on my google chrome and firefox.confused.

    <!DOCTYPE html>
    <html>
    <head>
    <title> its a new dawn </title>
    </head>
    <body>
    <h1> lets get started </h1>
    <div>

    <h2> Today's date is:</h2>
    <span id= "calendar"></span>
    <input type="button" id="myButton" value= "Get Date"/>

    </div>

    <script type="text/javascript">
    function showdate()
    {
    var today =new Date();
    var Calender = getElementById("calender");
    var mybutton = getElementById("Button");
    MyCalender.innerHTML = today.toDateString();
    myButton.value= "hurray kingbayode!";
    }
    </script>
    </body>
    </html>

  2. #2
    Join Date
    Mar 2007
    Location
    U.K.
    Posts
    1,127
    I have no error
    You may wish to write some code that actually calls that function, at which point the error console will show you an error.
    Where used, return should be executed unconditionally and always as the last statement in the function.

    That's my signature, it's not part of the damn post!

  3. #3
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,648
    [deleted]
    Last edited by Padonak; 09-19-2013 at 02:03 PM.
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

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