Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
create
Collapse the table of content
Expand the table of content

create method

Creates a new IHTMLAudioElement object.

Internet Explorer 9

 

Syntax


HRESULT retVal = object.create(src, oAudio);

Parameters

src [in, optional]

Type: VARIANT

URL of an audio resource.

oAudio [out, retval]

Type: IHTMLAudioElement

Address of a pointer to an IHTMLAudioElement interface.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The IHTMLMediaElement::src attribute of the new audio element is set to the the value of the passed src parameter.

This interface provides support in Windows Internet Explorer 9 for the script statement:


new audio();

 

 

Community Additions

ADD
Show:
© 2015 Microsoft