a javascript function won’t work no matter what i try

The line document.getElementById("genemail").onclick = processForm(){ is the problem, you can not name the function processForm here. If you change it to the keyword function it works just fine, see this fiddle: https://jsfiddle.net/jsk0byvu/

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top