DHTMLX Docs & Samples Explorer

Index
dhtmlxeditor
API Reference

### onAccess

Required library edition:
Required library file: dhtmlxeditor.js

fires when the specified native event fires

- eventName - the event name. Possible values: 'focus', 'blur', 'click', 'keydown', 'keypress', 'keyup'.
- e - a native event object.

    editor.attachEvent("onAccess",function(eventName,e){
         if(eventName == "blur"){
               alert("The editor is left!")
         }
    })