I have an application that uses iframes. This application is a rich client and in each frame there are javascript functions and libraries. The frames change context that is they change to different pages and load different javascript functions as a result. Currently when the page loads the javascript runs in the document of the frame window. My question is this. There are three frames a "top frame", a "nav frame" and a "content frame". Is it wise to continue running the Javascript as it is in each frame or should I load all the javascript functions into the document of the top frame.

Is their an advantage to doing it this way?

Best Regards,

Kevin Downey