Upon examining my Asp masterpage, I noticed the following code snippet:
<script>
if (theForm !== undefined) { // <<== line 746: error
theForm.onsubmit = ...bla bla... ;
}
</script>
When checking the Chrome console, an error is displayed:
Uncaught ReferenceError: theForm is not defined bla.aspx:746
I am now questioning whether this method of detecting an undefined name is incorrect, or if Chrome handles it differently?
(Please note that while Firefox console does not report an error, it still ceases to process subsequent JS code in this script block)