preset Property

This topic documents a feature of Binary Behaviors, which are obsolete as of Internet Explorer 10.

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

Syntax

XML N/A
Scripting [ sFormat = ] mask.preset

Possible Values

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

The property is read/write. The property has no default value.

Remarks

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

Applies To

mask

Community Additions

Show: