For some reason, in IE (IE8 in Win 7 to be precise), when I click on a mailto link, I end up with the current page being replaced by a blank page with mailto in the address bar.
Specifically, this is what happens when I click the mailto link:
- New about:blank tab opens and a security prompt pops up asking if I want to open Outlook. At this point, it looks like the original tab still is showing the original page.
- When I click "Allow" or "Don't Allow", the new tab closes and the original page is reloaded with the mailto in the address bar.
If I comment out the dojo.xd.js reference, it works as expected.
Firefox and Chrome just pop up the Outlook new message window. Also tested and works on Windows XP and IE7.
The code to replicate the issue is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>mailto test</TITLE>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dojo/dojo.xd.js" djConfig="parseOnLoad: true"></script>
</HEAD>
<BODY>
<a href="mailto:[email protected]">mailto</a>
</BODY>
</HTML>