title: Need to implement html button to access REST get resource
body: <p>Fairly new to REST and web application and would like to create a front-end site with a button and a place where a result is displayed. </p>
  
  <p>I have REST API structured like this: 
  <a href="http://hostserver.com/MEApp/MEService" rel="nofollow">http://hostserver.com/MEApp/MEService</a></p>
  
  <p>This returns a value when browsing to it. </p>
  
  <p>Now I would like to implement a GUI so that when you browse to c:\resourcebutton.html
  There will be a button and when I click on it, it will call the REST API resource and returns the result. If I understood REST correctly it should work like this. </p>
  
  <p>I have a html code: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;p&gt;Click the button to trigger a function.&lt;/p&gt;
  
  &lt;button onclick="myFunction()"&gt;Click me&lt;/button&gt;
  
  &lt;p id="demo"&gt;&lt;/p&gt;
  
  &lt;script&gt;
  function myFunction() {
      document.getElementById("demo").innerHTML = "Hello World";
  }
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How and where should I insert the GET method to call the API? Is it common to use Javascript?</p>