title: Javascript trigger request with a button?
body: <p>I am learning JavaScript, I have reached a section called "creating objects", since I am a novice in programming I cant figure out how to trigger the "prompt" request by using a button, instead of being triggered when the page loads,  any idea?</p>
  
  <pre><code>myobjt = new Object();
  var reqPrompt = prompt("Type a word:");
  myobjt.mnfstInput = reqPrompt;
  function mFunc() {
     document.write(this.mnfstInput);
  }
  myobjt.mnfstScreen = mFunc;
  myobjt.mnfstScreen();
  </code></pre>