it's a little bit confusing I know but let's try. i have uiwebview in my iphone app and it's loaded with html local file from the bundel .. I want to put html button in this file that can load another local file using javascript ... is that possible?? is there any other approach but that ..
any help will be appreciated
Loading javascript into a UIWebView from resources
In this link they have loaded local html file using javascript.
You can do a custom protocol bridge between the web page and your app as the following :
In you HTML page , you may add the following
a
tag for example :And in your app you'll handle this event by the following code :