Home »
General »
HTML, Javascript, jQuery & AJAX »
loading a page and executing a script local to it
|
Re: loading a page and executing a script local to it [message #17848 is a reply to message #17332] |
Thu, 22 April 2004 12:46 |
lahoo
Messages: 62 Registered: April 2004
Karma: 0
|
Member |
|
|
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.
javascript:parent.mainFrame.location.href='./america_ss.html?setslide(3)'
and in america_ss.html
<body onload="eval(location.search.substr(1))">
Please note that the code above is just an outline. I didn't mind adding error handling or anything else.
|
|
|
Goto Forum:
Current Time: Sat Dec 21 18:56:51 GMT 2024
Total time taken to generate the page: 0.02905 seconds