Data Driven Pages setup is added a tab to run script which is location of the script already stored in a field or in the field contain script.
So if we navigate the page, the script will be executed, for example the script change the scale interval, move object element in the layout, etc.
Best
Zakirman Ibros