Click View>Source to see the code in the browser
And in the form tags, this code, onsubmit calls the javascript function