DEFINE CLASS IHtmlTextContainerEvents AS MSHTMLEventBase OLEPUBLIC IMPLEMENTS HTMLTextContainerEvents IN "MSHTML.TLB"Hooked up with something like this (make sure the document is fully loaded before you do this):
*** Handle Container Events on the document's Body this.oTextContainerEvents = CREATEOBJECT("IHtmlTextContainerEvents") EVENTHANDLER(loEdit.Document.Body,this.oTextContainerEvents)+++ Rick ---