title: Javascript prevent empty space before character
body: <p>HTML:</p>
  
  <pre><code>&lt;input id=MyTextBox type="text" onkeypress="MyFunction()" /&gt;
  &lt;input id=MyButton  type="button" onclick="Control()" /&gt;
  </code></pre>
  
  <p><strong>Onkeypress Javascript :</strong></p>
  
  <p>I want to do below example , however i have not integrated according to <strong>"MyTextBox"</strong></p>
  
  <p><a href="http://jsfiddle.net/2cYeu/9/" rel="nofollow">http://jsfiddle.net/2cYeu/9/</a></p>
  
  <p><strong>There must not be no space before character in textbox.</strong></p>