title: How to get JavaScript text to show?
body: <p>This is for a class I'm taking. Its homework out of the book for a particular chapter. The book provides some code that is purposly not working and you have to fix it. I've got it all working exept for this part where youre supposed to get some text to show up at the bottom of the screen that displays the last time the document was modified.</p>
  
  <p>Ive gone over it repeatably and cant find whats wrong. Im wondering if the book has it wrong.</p>
  
  <p></p>
  
  <p></p>
  
  <pre><code>&lt;head&gt;
  
      &lt;script type="text/javascript"&gt;
  
          function CopyRight() {
              var lastModDate = document.lastModified
              var lastModDate = lastModDate.substring(0,10)
  
              xxx.innerHTML = "&lt;p style='font-size:8pt;'&gt;The URL of this document is "+document.URL+"&lt;br /&gt;Copyright Frank's Fix-t Hardware. This document was last modified "+lastModDate+".&lt;/p&gt;"
  
      &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;div id="xxx"&gt;&lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p></p>