| Sample: dhtmlxWindows | Personal Events | dhtmlxWindows main page |

dhtmlxWindow #2 has personal "onFocus" event

    <script>
        var dhxWins = new dhtmlXWindows();
        ...
        // adding global event
        dhxWins.attachEvent("onFocus", function(win) {
            alert("global event 'onFocus' was catched");
        });
        // adding personal event
        dhxWins.window(id).attachEvent("onFocus", function(win) {
            alert("personal event 'onFocus' was catched");
        });</script>