JavaScript How to force to open link in Safari from WebApp in iOS? force open link in new tab,force open link in

There is a link like <a target='_blank' href="http://www.google.com">Google</a> inside a web page of UIWebView in my app.How can I force this link opened with Safari when it's clicked?I've tried target="_blank" as someone suggested, but not work.Does anyone know that?

And how about a <form>, how can I make it redirect to Safari when it's submitted?

It's better to approach this through javascript, but not javascript objective-c interaction.

Answer:1

I've just created my Gruntfile.js which shows me the following Error when running grunt -v: Reading "Gruntfile.js" Gruntfile...OK Registering Gruntfile tasks. Loading "Gruntfile.js" tasks...ERROR &...

I've just created my Gruntfile.js which shows me the following Error when running grunt -v: Reading "Gruntfile.js" Gruntfile...OK Registering Gruntfile tasks. Loading "Gruntfile.js" tasks...ERROR &...

  1. grunt debug gruntfile
  2. how to debug gruntfile.js

I'm a bit perplexed on what should be a simple fix. I'm running a react-native project on version 0.27.2, and all of my ios.js files successfully import Stylesheet except one. The import looks like ...

I'm a bit perplexed on what should be a simple fix. I'm running a react-native project on version 0.27.2, and all of my ios.js files successfully import Stylesheet except one. The import looks like ...

  1. react native canvas
  2. react native can't find variable
  3. react native cannot call a class as a function
  4. react native cannot read property of undefined
  5. react native canvas draw image
  6. react native cannot find module
  7. react native can't find variable document
  8. react native can't find variable component
  9. react native can't find variable navigation
  10. react native cancel animation
  11. react native cannot find simulator
  12. react native canvas game
  13. react native can't find variable buffer
  14. react native cannot find module template.config
  15. react native canopenurl
  16. react native can't find variable image
  17. react native cancel fetch
  18. react native can't find variable button
  19. react native can't find variable require
  20. react native can't find variable stylesheet

I have an application built in Meteor. I run it locally and it is also deployed on a server. I just found out that the application is not running anymore on Chrome. I am not sure but probably the only ...

I have an application built in Meteor. I run it locally and it is also deployed on a server. I just found out that the application is not running anymore on Chrome. I am not sure but probably the only ...

I'm trying to use and understand the Aurelia ValueConverter in the context of a multi-select form. What I thought would be straight forward, has turned out to be a challenge for me. I have a form to ...

I'm trying to use and understand the Aurelia ValueConverter in the context of a multi-select form. What I thought would be straight forward, has turned out to be a challenge for me. I have a form to ...

  1. aurelia value converter from view