IHTMLObjectElement4::data Property

Gets or sets the URL that references the data of the object.


HRESULT IHTMLObjectElement4::get_data(BSTR *p);
HRESULT IHTMLObjectElement4::put_data(BSTR v);


  • p
    Pointer to a variable of type BSTR that receives the URL of the data.
  • v
    BSTR that specifies the URL of the data.

Return Value

Returns S_OK if successful, or an error value otherwise.


In Microsoft Internet Explorer 6 and greater, this property applies to the comment object.

See Also

IHTMLObjectElement::type, About the W3C Document Object Model