MichaelM, you're right, trivNextPage() is all you need.If you need to read or write Lectora variables from JavaScript, there's a little more you need to know. The JavaScript will look like this:VarLectoraVariableName.set(value)VarLectoraVariableName.getValue()And, you can only access a Lectora variable from JavaScript if you use that variable in some way on your Lectora page. (So if you don't already have a Lectora action to modify the variable in some way or check its value, then you'll need to create some sort of dummy action that references the Lectora variable.)