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
http://msdn2.microsoft.com/en-us/library/ms531078.aspx
moz-behaviors.xml (allows HTC behaviors to be used with FireFox)
http://dean.edwards.name/moz-behaviors/overview/
Home |
Libraries |
Snippets | Contact/About
Copyright © 2007 David Pinch except where designated otherwise.