共用方式為


IHTMLObjectElement interface

This interface inserts an object into the HTML page.

Members

The IHTMLObjectElement interface inherits from the IDispatch interface. IHTMLObjectElement also has these types of members:

  • Properties

Properties

The IHTMLObjectElement interface has these properties.

Property Description

align

Sets or retrieves how the object is aligned with adjacent text.

altHtml

Gets or sets the optional alternative HTML script to execute if the object fails to load.

BaseHref

Retrieves a string of the URL where the object tag can be found. This is often the IHTMLBaseElement::href of the document that the object is in, or the value set by a base element.

classid

Sets or retrieves the class identifier for the object.

code

Sets or retrieves the URL of the file containing the compiled Java class.

codeBase

Sets or retrieves the URL of the component.

codeType

Sets or retrieves the Internet media type for the code associated with the object.

data

Sets or retrieves the URL that references the data of the object.

form

Retrieves a reference to the form that the object is embedded in.

height

Sets or retrieves the height of the object.

hspace

Sets or retrieves the horizontal margin for the object.

name

Sets or retrieves the name of the object.

object

Retrieves the contained object.

readyState

Retrieves the current state of the object.

recordset

Sets or retrieves from a data source object a reference to the default record set.

type

Sets or retrieves the MIME type of the object.

vspace

Sets or retrieves the vertical margin for the object.

width

Sets or retrieves the width of the object.

 

Remarks

The object element is a block element.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

Reference

IHTMLObjectElement2

IHTMLObjectElement3