My mailto hyperlinks don't fire correctly in both Chrome & Firefox, yet in Safari fire perfectly.
Can anyone see a conflict with the Onclick and Onblur rules I have?
function saveText(){
var xr = new XMLHttpRequest();
var url = "saveNewText.php";
var text = document.getElementById("editable").innerHTML;
var vars = "newText="+text;
xr.open ("POST", url, true)
xr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xr.send(vars);
}
<div id="editable" onclick="listenForDoubleClick(this);" onblur="saveText(); this.contentEditable=false" contenteditable="false">Test Name
<a href="mailto:test.name@website.com"></a>
</div>
As soon as you take these out of the equation; they fire perfectly fine in both browsers which is why I believe them to be the problem