Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
109
rated 0 times [  114] [ 5]  / answers: 1 / hits: 65184  / 13 Years ago, tue, june 28, 2011, 12:00:00

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]>&nbsp;</a>').click();


...to no avail


More From » jquery

 Answers
52

Clicking on a link means changing window.location, so how about



window.location = mailto:[email protected];

[#91461] Sunday, June 26, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
francokeganr

Total Points: 438
Total Questions: 102
Total Answers: 124

Location: Belarus
Member since Sat, Jul 18, 2020
4 Years ago
;