DHTMLX Docs & Samples Explorer

getCurrentPage()

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

get currently opened page index (1 based)

Returns numeric value - 1 based page index

    if(myFolders.getCurrentPage()==myFolders.getNumberOfPages()){
        alert("You are on the last page")
    }