Get Current Page Index
Definition:
NDLLibrary.getCurrentPageIndex(ndlParams)
Description:
Returns the index of the page currently displayed in the browser.
Parameters:
Returns:
A number indicating the current page index.
Code Sample:
return NDLLibrary.getCurrentPageIndex(ndlParams);
Notes:
-
The pages are indexed in the order in which they appear in the Pages tab of the Project Explorer. The first page, i.e. the one displayed at the top of the tab, has an index of 1, the next one down is 2 and so on.
-
This function uses the default ndlParams object because it requires the scope property contained in the default object. If you want to include this function within your own custom JavaScript, you will need to generate a JavaScript function from an Element's properties in order to obtain the default ndlParams and then modify that function or make its default ndlParams object available to other functions that you write.
Using as Predefined Action in Event:
When assigned to an Event as a predefined action, this function doesn’t require any editing.
See also: