title: What's wrong with putting () at the end when calling a function?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3246928/in-javascript-does-it-make-a-difference-if-i-call-a-function-with-parentheses">In JavaScript, does it make a difference if I call a function with parentheses?</a>  </p>
  </blockquote>
  
  
  
  <p>This may sound very basic, but I really don't understand.</p>
  
  <p>I try to take <code>()</code> off from an event handler and it cause a bug in my JavaScript webpage, what is the difference between putting and not putting <code>()</code> at the end when calling a function.</p>
  
  <p>My example is:</p>
  
  <pre><code>document.getElementById("searchField").onkeyup = searchSuggest;
  </code></pre>
  
  <p>when I changed to <code>searchSuggest()</code>, my function was not working.</p>
  
  <p>Can anyone please explain to me? If I make any part unclear, please ask, thank you.</p>