I have tried to find an answer to this question by searching the web, but haven’t had any luck. Most information is much more complicated then I expected this answer to be, and none actually answered this question.
In this tag:
<form method="post" action="process.php" name="processform" id="form1" onsubmit="return validate(this)">
What does “this” refer to?
If I was going to replace “this” with a hard-coded reference to the same object what would I replace it with?
thiswill refer to the form node that is being submitted. You can replace the reference withdocument.getElementById('form1').