<!DOCTYPE html>
          <html lang="en" dir="ltr">
            <head>
              <meta charset="utf-8">
              <script src="week03example07.js" charset="utf-8"></script>
              <title>External Javascript</title>
            </head>
            <body onload="newText()">
              <p id="testPara">It didn't work!</p>
            </body>
          </html>
        
      
        
          //This code is in a different file called week03example07.js
          function newText(){
            document.getElementById('testPara').innerHTML = "It worked!";
          }