Question: How can I call a function on one web page from another web page?
Obviously, my code is just to simplfy the question.
The broader picture is:
page1 opens page2 (page1 remains open also)
page2 does some work, then calls function on page1, then closes itself(page2)
function on page1 opens page3 which does some work, then refreshes page1 and closes itself (page3)
page1 is now refreshed, displaying the result of work done by page 3.
page2 gets user input required for the work which page 3 will do.
page1 is inside frame