title: how to add a class to window.location.href
body: <p>I am trying to add a class to the link being called through JS onload in body tag . for example</p>
  
  <pre><code>&lt;body onload="window.location.href = 'http://example.com/'; class='blank'; "&gt;
  </code></pre>
  
  <p>Any idea how to do this?</p>
  
  <p>I am sorry if I have been unclear about the requirement. I need this to work as I want to target a function of a jquery that works on click with a class .</p>
  
  <p>thank you</p>