? for javascripters
? for javascripters
- Started
- Last post
- 4 Responses
- freekilly
hello
I would like to call an e-mail link within a javascript function, because in my construction I can't use events within the html tags. (the function is evoked in a draglayer behaviour). I searched the javascript reference but can't figure how I should do it. can anyone help?
- dc0
you can do something like this:
function emailMe(){
window.location.href = 'mailto:email@email.com';
}<a href="javascript:emailMe()">c... here</a>
- freekilly0
That's really great! It works!
thanks dc
- dsmith70
if you can write a regular anchor tag then why can't you just write the anchor to mail in html? makes no sense to me.
I would just do static html Mail Me
- dsmith70
i guess the html didn't show up