Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

fireEvent method

Fires a specified event on the object.

Syntax


HRESULT retVal = object.fireEvent(bstrEventName, pvarEventObject, pfCancelled);

Parameters

bstrEventName [in]

Type: BSTR

BSTR that specifies the name of the event to fire.

pvarEventObject [in, optional]

Type: VARIANT

Pointer to a VARIANT that specifies the IHTMLEventObj interface from which the event properties are obtained.
pfCancelled [out, retval]

Type: VARIANT_BOOL

VARIANT_TRUE (true)

Event fired successfully.

VARIANT_FALSE (false)

Event was canceled.

VARIANT_BOOL that receives one of the following values:

Return value

Type: HRESULT

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

Standards information

There are no standards that apply here.

Remarks

If the event being fired cannot be canceled, IHTMLElement3::fireEvent always returns VARIANT_TRUE.

See also

IHTMLDocument4::createEventObject

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.