title: How to test if a URL string is absolute or relative?
body: <p>How can I test a URL if it is a relative or absolute path in Javascript or jQuery? I want to handle accordingly depending if the passed in URL is a local or external path.</p>
  
  <pre><code>if (urlString starts with http:// or https://)
   //do this
  </code></pre>