* oDocEvHandler = CREATEOBJECT("HTMLDocumentEvents") EVENTHANDLER(yourIEinstance.Document, m.oDocEvHandler) *===================================================== DEFINE CLASS HTMLDocumentEvents AS Custom IMPLEMENTS HTMLDocumentEvents IN "MSHTML.TLB" *======================================================= ... All other methods of the interface PROCEDURE HTMLDocumentEvents_oncontextmenu() AS LOGICAL *-S-*[ Suppress the context menu RETURN .F. ENDPROC ENDDEFINE