title: Any easy way to target an element with onload within that onload?
body: <p>Say you wanted to make an element blue with JS, like this:</p>
  
  <pre><code>&lt;p onload="this.style.color = 'blue'"&gt;Boy, I sure do wish I was blue&lt;/p&gt;
  </code></pre>
  
  <p>The above line doesn't work, as <code>this</code> targets the window object in that context. You could use ID's, but I'd assume there's a better way.</p>
  
  <p>So, like the title says, is there any easy way to target an element with onload within that onload? Note that such a solution would have to work when there are multiple elements with the <code>onload</code> attribute in the page.</p>