I want to dynamically create an <a href="mailto:...">
element, then "click" it. All without modifying the page.
I'm trying this:
$('<a href="mailto:[email protected]"> </a>').click();
...to no avail
Its not jquery, but it works just fine.
var link = document.createElement('a');
link.href = url;
document.body.appendChild(link);
link.click();