Compartilhar via


stepDown method

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

 

Syntax

HRESULT retVal = object.stepDown(n);

Parameters

  • n [in, optional]
    Type: long

    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 IHTMLInputRangeElement::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

stepUp

IHTMLInputRangeElement::step