function number_input()
{
if((event.keyCode<48)||(event.keyCode>57))
{
event.returnValue=false;
}
}
<input name="test" type="text" onkeydown="return number_input()" style="IME-MODE: disabled; ">
{
if((event.keyCode<48)||(event.keyCode>57))
{
event.returnValue=false;
}
}
<input name="test" type="text" onkeydown="return number_input()" style="IME-MODE: disabled; ">