DHTMLX Docs & Samples Explorer

forEachWindow(handler)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxwindows.js

iterator - goes through all windows and calls a user handler

  • hander (user function)
    dhxWins.forEachWindow(function(){
        // code here
    });
    // or
    function doWithWindow(){
        // code here
    });
    dhxWins.forEachWindow(doWithWindow);