title: How to get the url from link rel="next" in <head> with javascript
body: <p>How to get the url from</p>
  
  <pre><code>&lt;link rel="prev" title="Selected 3" href="http://mydomain.com/2.html" /&gt;
  </code></pre>
  
  <p>in the head using pure javascript? </p>
  
  <p>In jquery I have a working solution: </p>
  
  <pre><code>var prevUrl = $('link[rel=prev]').attr("href");
  </code></pre>
  
  <p>I can't change the output of the "link rel" or add an Id, as it is generated by a CMS.</p>
  
  <p>Any help is greatly appreciated, thanks. </p>