01-Starting Java Script Tutorials

by Aruna Sanjeewa

HTML

<html>

  <head>
    <title>Java Script Tutorial Example
    </title>
  </head>

  <body>
    <button type="button"              onclick="document.getElementById('output').innerHTML=Date()">
      Hey tell me the date</button>
    <p id="output"></p>
  </body>

</html>