Hello I have some JavaScript code to fill some table of page1 and auto click its submit button, then it jump to another page2. 

What I want is to execute some other codes after page2 is fully loaded. I know methods like `window.onload` and `jQuery.ready` but i don't know how to set this method to page2. For example if i write window.onload then the window reference to the current page.

Can anyone help?