Is there some way for me do something like the following in Javascript? ( Specifacly I want to do this from Javascript running in an Iphone OS UIWebView)
create a function called RedirectAndExecuteFunctionOnDomReady(url, function)
- Redirect to the HTML of the provided url
- When the new HTML DOM is ready, execute the provided function (which will modify the DOM)
- Finish loading/rendering the Page