Never mind guy's I have found my answer. Posted here if anyone else needs it,

function CheckNumeric(e)
{
        var key //= (window.event) ? event.keyCode : e.which;
        if (window.event)
                key = event.keyCode
        else
                key = e.which
        // Was key that was pressed a numeric character (0-9) or backspace (8)?
        if ( key > 47 && key < 58 || key == 8 )
                return; // if so, do nothing
        else // otherwise, discard character

                if (window.event) //IE
                        window.event.returnValue = null;                else 
//Firefox
                        e.preventDefault();
}

> Thanks for your help so far guy's. Massimo, your library is very good 
> but too much for what I need to do here and unfortunately I do not 
> know Javascript well enough to be able to extract the single specific 
> bits of code that I would need.
> 
> f3I, thanks for your suggestion but you are correct in the fact that 
> my users would not like it.
> 
> I really only need, if possible, to find the equivalent javascript 
> that will work in both IE and Firefox. Any other 
suggestions?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2188
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to