<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How Can I Prevent Users From Typing Anything But Numbers Into an HTA Text Box?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/05/09/how-can-i-prevent-users-from-typing-anything-but-numbers-into-an-hta-text-box.aspx</link><description>Hey, Scripting Guy! We have an HTA we use for data input. In one of the text boxes our users are only supposed to type numbers. How can I prevent users from typing anything except numbers in that text box? -- KV 
 Hey, KV. You know that’s a pretty good</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How Can I Prevent Users From Typing Anything But Numbers Into an HTA Text Box?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/05/09/how-can-i-prevent-users-from-typing-anything-but-numbers-into-an-hta-text-box.aspx#3368976</link><pubDate>Tue, 16 Nov 2010 18:27:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3368976</guid><dc:creator>Help</dc:creator><description>&lt;p&gt;Hello, is there a way to use javascript instead of visual basic? Maybe like this?&lt;/p&gt;
&lt;p&gt;function KeyCheck {&lt;/p&gt;
&lt;p&gt;	if(Window.Event.KeyCode &amp;lt; 48 OR Window.Event.KeyCode &amp;gt; 57){&lt;/p&gt;
&lt;p&gt;		return False;&lt;/p&gt;
&lt;p&gt;	}else{&lt;/p&gt;
&lt;p&gt;		return true;&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;email me with some at weilunt0219@yahoo.com if you have the answer please!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3368976" width="1" height="1"&gt;</description></item><item><title>re: How Can I Prevent Users From Typing Anything But Numbers Into an HTA Text Box?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/05/09/how-can-i-prevent-users-from-typing-anything-but-numbers-into-an-hta-text-box.aspx#3340304</link><pubDate>Thu, 24 Jun 2010 19:58:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3340304</guid><dc:creator>Ali S</dc:creator><description>&lt;p&gt;Oh, one thing - I couldn&amp;#39;t get that &amp;quot;disable F5&amp;quot; code to work with your onkeypress method, had to use &amp;quot;onkeydown&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3340304" width="1" height="1"&gt;</description></item><item><title>re: How Can I Prevent Users From Typing Anything But Numbers Into an HTA Text Box?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/05/09/how-can-i-prevent-users-from-typing-anything-but-numbers-into-an-hta-text-box.aspx#3340302</link><pubDate>Thu, 24 Jun 2010 19:57:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3340302</guid><dc:creator>Ali S</dc:creator><description>&lt;p&gt;Hey, fellas - I extended this method to disable the F5 key (when users refresh my HTA midaction, it resets it to the beginning!?!), as so...&lt;/p&gt;
&lt;p&gt;&amp;lt;SCRIPT Language =&amp;quot;VBScript&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Sub KeyCheck&lt;/p&gt;
&lt;p&gt;	if Window.Event.KeyCode = 116 Then &lt;/p&gt;
&lt;p&gt;		Window.Event.returnValue = False&lt;/p&gt;
&lt;p&gt;	End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;p&gt;&amp;lt;/SCRIPT&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;BODY onkeydown=&amp;quot;KeyCheck&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;INPUT TYPE=text&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/BODY&amp;gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3340302" width="1" height="1"&gt;</description></item></channel></rss>