- You define
emailTrainer
inside another function (for no apparent reason: it is waiting for the DOM to be ready, but doesn’t operate on the DOM) but then try to access it in the global scope (where it doesn’t exist). - You are using
document.write
after the document has loaded. This will wipe out the existing document. Use DOM manipulation instead. - You misspelt
href
asherf
- You misspelt
javascript
asjavacript
, but thetype
attribute is optional (for JS) since HTML 5 and should be omitted to avoid the possibility of such typos. - You missed out the concatenation operator (
+
) betweendName
and'?Subject="
- You are calling
$
from jQuery but have given no indication that you”ve loaded that library (and, as mentioned in1
you aren’t using it for anything useful anyway)
1
solved I don’t know what I’m doing wrong [closed]