IHTMLImgElement::get_onabort
IHTMLImgElement

IHTMLImgElement::get_onabort


HRESULT get_onabort(
    VARIANT *p
);

Retrieves the inline script associated with the onabort event for an IMG element. The onabort event occurs when the user aborts the download of the image.

p
Address of a VARIANT structure that receives the script.

See also put_onabort

IHTMLImgElement::put_name

HRESULT put_name(
    BSTR v
);

Sets the name of the element.

v
String specifying the name.

The name is used to bind the value of the control when submitting a form. The NAME is not the value that is displayed for the button, reset, and submit objects. Submitting the form submits the internally stored value, not the one displayed.

JScript allows the name to be changed at run time. This does not change the name in the programming model, in the collection of elements, but does change the name used for submitting elements.

See also get_name

IHTMLImgElement::get_name

HRESULT get_name(
    BSTR *p
);

Retrieves the name of the control.

p
Address of a variable that receives the name.

The name is used to bind the value of the control when submitting a form. The NAME is not the value that is displayed for the button, reset, and submit objects. Submitting the form submits the internally stored value, not the one displayed.

JScript allows the name to be changed at run time. This does not change the name in the programming model, in the collection of elements, but does change the name used for submitting elements.

See also put_name

IHTMLImgElement::put_width

HRESULT put_width(
    long v
);

Sets the calculated width of the element, in pixels.

v
Value specifying the width.

This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels.

See also get_width

IHTMLImgElement::get_width

HRESULT get_width(
    long *p
);

Retrieves the calculated width of the element, in pixels.

p
Address of a variable that receives the width.

This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels.

See also put_width

IHTMLImgElement::put_height

HRESULT put_height(
    long v
);

Sets the calculated height of the element, in pixels.

v
Value specifying the height.

If the value of the corresponding HTML attribute was set using a percentage, this property specifies the height in pixels represented by that percentage.

See also get_height

IHTMLImgElement::get_height

HRESULT get_height(
    long *p
);

Retrieves the calculated height of the element, in pixels.

p
Address of a variable that receives the height.

If the value of the corresponding HTML attribute was set using a percentage, this property specifies the height in pixels represented by that percentage.

See also put_height

IHTMLImgElement::put_start

HRESULT put_start(
    BSTR v
);

Specifies when a video clip file should start playing.

v
String specifying when to start the video. Can be one of these values:
fileopen The video starts as soon as it is finished loading.
mouseover The video starts when the mouse goes over the animation.

See also get_start

IHTMLImgElement::get_start

HRESULT get_start(
    BSTR *p
);

Retrieves when a video clip should start playing.

p
Address of a variable that receives one of these values:
fileopen The video starts as soon as it is finished loading.
mouseover The video starts when the mouse goes over the animation.

See also put_start

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.