Click to return to the DHTML, HTML     
onerror Event     Behaviors Library    
Web Workshop  |  DHTML, HTML & CSS

preset Property


Sets or retrieves a preset input mask for the mask behavior.

Syntax

XMLN/A
HTML<ELEMENT PRESET = shortdate | mediumdate | longdate | currency | percent | phone | zip ... >
Scripting[ shortdate | mediumdate | longdate | currency | percent | phone | zip = ] oMenu.preset

Possible Values

shortdate String specifying the mask is a short length date format of DD/MM/YYYY. Example: 01/01/2000.
mediumdate String specifying the mask is a medium length date format of DD-MMM-YYYY. Example: 01-Jan-2000.
longdate String specifying the mask is a long length date format of Month Day, Year. Example: January 1, 2000.
currency String specifying the mask uses the currency format $0.00. Example: $14.95.
percent String specifying the mask uses the percentile format %00.0. Example: %23.7.
phone String specifying the mask uses the seven-digit phone number format ###-####, or the ten-digit phone number format (###) ###-####. Example: 555-1212, (206) 555-1212.
zip String specifying the mask uses five-digit postal code format #####, or the nine-digit postal code format #####-####. Example: 98052, 98052-1421.

The property is read-only with no default value.

Remarks

The preset property is available only to objects participating in the mask behavior.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
mask


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.