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

dhtmlxWindow #2 has personal "onFocus" event

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