title: how to modify the content of a div
body: <p>This is my simple code HTML but it doesn't work with me</p>
  
  <pre><code>&lt;html lang="en"&gt;
          &lt;head&gt;
              &lt;title&gt;Test&lt;/title&gt;
              &lt;script type="text/javascript"&gt;
              function getdata() {
  
                  document.getElementById("page").innerHTML="Hello";
              }
          &lt;/script&gt;
          &lt;/head&gt;
          &lt;body&gt;
           &lt;a id="teachers" href="" name="teachers" onclick="getdata()"&gt;Click here &lt;/a&gt;
           &lt;div id="page"  name="takak" class="home"&gt;
              modify this text 
           &lt;/div&gt;
          &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want to modify the content of the div (id="page") when I click on the link . Please can someone help me ?! </p>