Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
add
Expand Minimize

stepDown method

Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.7.4 Internet Explorer 10

 

Syntax

var retval = HTMLInputElement.stepDown(n);

Parameters

n [in, optional]

Type: Integer

Value to decrement the value by.

Return value

Type: HRESULT

This method can return one of these values.

S_OK

Standards information

Remarks

Throws an InvalidStateError exception if the control doesn't support stepDown, if the Step attribute's value is "any", if the current value could not be parsed, or if stepping in the given direction by the given amount would take the value out of range. Versions earlier than Internet Explorer 10 will throw the exception as INVALID_STATE_ERR.

See also

HTMLInputElement
stepUp
Step

 

 

Show:
© 2015 Microsoft