Load two javascript files but only run the first one on page refresh
<p>I have two files, the first one is a menu and the second one is a small application should run if i press a certain button, that is done. But if i press cancel in the menu i dont want the following program to run after i quit.</p>

<p>Both my files are window.onload.</p>

<p>Any tips on how I can do this? Thanks!</p>
