title: Scraping in R, cannot get "onclick" attribute
body: <p>I'm scraping the NFL website with R. R might not be the best to do this but that is not my question here.
  I can usually get everything I want but for the first time I got a problem.
  In the present case I want to get info from let's say, this page</p>
  
  <p><a href="http://www.nfl.com/player/j.j.watt/2495488/profile" rel="nofollow">http://www.nfl.com/player/j.j.watt/2495488/profile</a></p>
  
  <p>The info I want to get is there</p>
  
  <pre><code>&lt;a href="draft" onclick="s_objectID=&amp;quot;http://www.nfl.com/player/j.j.watt/2495488/draft_1&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;Draft&lt;/a&gt;
  </code></pre>
  
  <p>Using xPathSapply(parsedPage,xmlGettAttr, name="onclick") I get only NULL... and I do not get the reason why. </p>
  
  <p>I could retrieve the information elsewhere in the code and then paste to recover the address but I find it much easier and clearer to get it at once.
  How can I get this, using R, eventually C. I do not know much about JavaScript, I would be happy to avoid this.</p>
  
  <p>Thanks in advance for the help.</p>