Answered
How to get Next Page Number from activePage in indesign using javascript ?
I used the following lines to get next Page but unable to fetch nextPage number. How to get it?
var currentpage= myElement.texts[0].parentTextFrames[0].parentPage;
var nextpage= doc.pages.nextItem(currentpage).name;I tried using .name propery to get the name of the next page but it shows invalid property!
Is there any other way to get the nextPage name! If so Please help me.