IHTMLInputElement::border Property

Sets or retrieves the width of the border to draw around the object.

Syntax

HRESULT IHTMLInputElement::get_border(VARIANT *p);
HRESULT IHTMLInputElement::put_border(VARIANT v);

Parameters

  • p
    Pointer to a variable of type VARIANT of type VT_BSTR that receives the number of pixels in the object border.
  • v
    VARIANT of type VT_BSTR that specifies the number of pixels in the object border.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Setting a border to 0 or omitting the attribute causes no border to be displayed. Supplying the BORDER attribute without a value defaults to a single border.

In Microsoft Internet Explorer 6, This property now applies to the object object.

See Also

borderColor, borderColorDark, borderColorLight, hspace, vspace