title: how to differentiate between javascript submit and manually clicking submit
body: <p>how to differentiate between javascript triggered submit and manually clicking form submit<br>
  sample code below</p>
  
  <pre><code> function myfunction()
   {
      document.getElementById("id_searchform").submit();
      return true;
   }
  </code></pre>
  
  <p>form:</p>
  
  <pre><code>&lt;div class='row'&gt;
     &lt;div class='col-md-4'&gt;
        &lt;div class='clszipcode' &gt;&lt;span&gt;Enter Zipcode&lt;/span&gt;&lt;/div&gt;
     &lt;/div&gt;
     &lt;div class='col-md-4'&gt;
        &lt;div class='clstxtzipcode' &gt;&lt;input type="text" name="zip_code" id="txtZipcode"&gt;&lt;/div&gt;
     &lt;/div&gt;
     &lt;div class='col-md-4'&gt;
        &lt;div class='clsbtnzip' &gt;&lt;input type="submit" name="submit" id="btnSearch" value="Search" class="button_example"  &gt;&lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  &lt;a href="#"  onclick="return myfunction();" &gt;click to submit&lt;/a&gt;
  </code></pre>