I have a layout that on load runs a script with a few calculations etc, however I have just put a button on the layout to open a pop up window.
I have the script to open new window then go to layout as I don't want to leave the original layout. The problem is though, is the new window is effectivly the same as the original for a brief moment and so the script on page load starts to run but it can't as I'm already in that page on the original window. Is there a way to open a new window but abort any scripts? or another solution?