title: How to have a Onload event with Vuejs - specifically how to put the script in the method and the way to get a call in the html
body: <pre><code>export default {
  
      methods: {
      hotbod() { document.querySelector("body")},
  
      doStuff() {
        hotbod.className += " animate";
      },
  
  
      window:onload = function() {
        doStuff();
      },
        },
      }
  </code></pre>
  
  <p>Above is the code, that I think has some errors in it - and for some reason I cannot get the javascript to work (On page load, there are CSS that gets loaded).</p>