Problem with navigateToURL when using mailto in Internet Explorer

If you want someone to select a link that navigates to someones email address without opening a window, your first instinct would be to do this: navigateToURL("mailto:some.email@myemail.com", "_self");

This works fine in most browsers but Internet Exporer IE opens a new window which says something like there is an error trying to navigate to that page.

There are probably a few ways around this so here is one. Basically use an externalInterface  to call the built-in javaScript assign() method and pass in the target url.

Eg: ExternalInterface.call("window.location.assign", "mailto:some.email@myemail.com"); 

 

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

Comments are closed