InputInteger HTC (DHTML Behavior) Example

This sample demonstrates how to create an HTC behavior that forces a text box to accept numeric digits only.  This is a sample and placed into the public domain.  There is indeed an behavior "Mask" provided by Microsoft; however, this example cuts to the barebones for easier understanding.


MSDN Section on Dynamic HTML Behaviors

moz-behaviors.xml (allows HTC behaviors to be used with FireFox)

See Also