title: Using chance.js to place a random word into html
body: <p>Im sure this is probably a stupid question...</p>
  
  <p>Im using chance.js because I want the main <code>&lt;h1&gt;</code> on my site to display something different each time you reload the page.</p>
  
  <p>So if i put the following into my functions.js file:</p>
  
  <pre><code>$(window).load(function() {
      document.write(chance.pick(['hello', 'GDay']));
  });
  </code></pre>
  
  <p>how to I get the word to appear inside my <code>&lt;h1&gt; &lt;/h1&gt;</code> tags in my html file ?</p>