title: How to detect whether a string is in URL format using javascript?
body: <p>I think the question title seems to explain eveything.
  I want to detect whether a string is in URL format or not using javascript.</p>
  
  <p>Any help appreciated.</p>