Notes
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Creates a new IHTMLAudioElement object.
![]() |
Syntax
HRESULT retVal = object.create(src, oAudio);
Parameters
src [in, optional]
Type: VARIANTURL of an audio resource.
oAudio [out, retval]
Type: IHTMLAudioElementAddress 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();