So I had this, and it was working and all was good.
I then tried to make the change to this, and it all went wrong.
Am I defining functions in the wrong way? Sorry, I’m new to JS & jQ (Though I’m assuming this is just basic javascript rather than anything jQuery-related)
EDIT: Also, does the MAILTO: href not work? I tried it and didn’t receive an email… anyway, thanks!
You should change these:
to
You want to assign the function itself as a
focusouthandler, but instead you’re assigning whatever the function returns as a handler.Also, the
mailto:URL scheme does not send emails. It opens whatever local mail client is defined as handler for this scheme on the visitor’s machine and commences composition of a new message addressed to the address in the URL.