Simplest way would be to drag the script object to be under the root node (form1). On both pages would would then be able to reference the function by:
testScript.doThisNow();
If you leave the script object under page1, then from page2, the following should work:
Simplest way would be to drag the script object to be under the root node (form1). On both pages would would then be able to reference the function by:
testScript.doThisNow();
If you leave the script object under page1, then from page2, the following should work: