title: how to disable a html button after it has been clicked not a submit button
body: <p>hi i have a html button and when you press it, it should give you the distances of shops from where you are so when you press it they appear now the problem is because it is in early stages the information is printed everytime the button is pressed i would just like to now how to disable it when it has been pressed once and then reactivate it when another button has been pressed this is not a submit button my code for the button is :</p>
  
  <pre><code>   &lt;button onclick="getLocation()"&gt;Search&lt;/button&gt;
  </code></pre>
  
  <p>any help would be much appreciated thanks in advance </p>