I'm trying to execute a string that will load a page and execute a script local to that page from a menu item in a frame.
The first part of the code works i.e. it loads the page no problem but I cannot get the function to execute when the page loads.
The code I am using is:-
javascript:parent.mainFrame.location.href='./america_ss.html';javascript:pa rent.mainFrame.setslide(3)
I am worried that the reason the function is not executing is because the .js file hasn't loaded in time before the function is executed.
You could pass the name of the function to call as a parameter to the page you intend to load and then have logic in the body's onload()-method to execute that function.
The general solution would eb something like this.