I am trying to do a simple email validation for a form with javascript that doesn't seem to work. I have tried pasting it into both the head and body of my html document. I have also tried unsuccessfully to link it as an external .js file.
I have tried numerous scripts that I have found online but none have worked. I am new to programming and don't have much experience with javascript.

Please help!