title: How to add input field validation for url using Angular.js/Javascript
body: <p>i need one help.I need to validate the input field for URL.I am explaining my code below.</p>
  
  <pre><code>&lt;div class="input-group bmargindiv1 col-md-12"&gt;
   &lt;span class="input-group-addon ndrftextwidth text-right oditek-form" style="width:180px" id="identitylabel"&gt;Website URL:&lt;/span&gt;
  &lt;input type="text" name="url" id="weburl" class="form-control oditek-form" placeholder="Add Website URL" ng-model="url" ng-keypress="clearField('weburl');"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here right now i can entry any URL of any format.suppose user is entering one <code>URL</code> like <code>www.angon.com</code> then it should throw the validation error to add <code>http/https</code> in beginning of the <code>URL</code>.Please help me.</p>