Mailto in IE 9 - Internet Explorer Cannot Display Web Page

I am having problems with mailto in IE 9. The problem is that after clicking on the mailto link IE 9 tries to open a URL with a mailing address, and after a few seconds I get a page redirection and appearance (which is a protocol-related program mailto) finally opens.

For example: I click on the mailto link → A new tab opens with this address → "mailto: diego@maradona.com ", and the error message "Internet Explorer does not display the web page" is displayed on the page. Then the appearance opens normally.

Data:

  • If I try to open mailto from the Internet, it works fine, the problem is only with the intranet site
  • If I open mailto from local html (not for IIS), it works fine
  • I can open mailto in IE 7 and 8

I found a “dirty” solution to this problem, I added a hidden iframe inside the page and a function to change the src attribute as needed.

function doMailto(mailto) { document.getElementById("iframe").src = "mailto:" + mailto; } 
+4
source share

Source: https://habr.com/ru/post/1379214/


All Articles