views:

45

answers:

1

Exists any JavaScript or Objective-C method to convert a location.href="MyURL" to <a href="MyURL"></a>??

I have over 200 location.href URL not working with UIWebViewNavigationTypeLinkClicked :-S

Thanks to everyone can help me!

A: 

I think you should clarify your question: Do you have an HTML text with links represented as location.href text and you want basic text translation into tags? Please describe the problem in more details so that we can help you

Nick
You have enough reputation to add comments; please do so.
Hello71
I want that my Javascript(event){ location.href= http://... } can be read by the browser like an anchor link. Is that possible?
Obliviux
Let's see: so you have this event that basically loads that URL, right? And you want, instead of loading the page, to display the link to that page? In that case you can rewrite your function as ... { document.write("<a href='linkurl'></a>"); } ... that should display the link
Nick