title: Checking if a variable is an integer in javascript
body: <p>I made a form where the user inputs values for width and height that they want for the pop up window to be. I am using <code>window.open</code> for  that. </p>
  
  <p>So I think I need to check if the values for width and height are integer. I have a function that checks that a variable is an integer that is...</p>
  
  <pre><code>function isInteger(possibleInteger) {
      return !isNaN(parseInt(possibleInteger));
  }
  </code></pre>
  
  <p>but I don't know how to call this function to the width and height function to check if the user inputted an integer. Can any one help?</p>