Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Internet Explorer
Legacy APIs
Hosting and Reuse
MSHTML Reference
IHTMLElement
 onclick Property
IHTMLElement::onclick Property

Sets or retrieves a pointer to the event handler function associated with the onclick event.

Syntax

HRESULT IHTMLElement::get_onclick(VARIANT *p);
HRESULT IHTMLElement::put_onclick(VARIANT v);

Parameters

p
Pointer to a variable of type VARIANT of type VT_DISPATCH that receives the IDispatch interface of an object with a default method that is invoked when the event occurs.
v
VARIANT of type VT_DISPATCH that specifies the IDispatch interface of an object with a default method that is invoked when the event occurs.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

 New for Windows Internet Explorer 9 Internet Explorer 9. This event has been extended to IHTMLWindow7.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker