As JavaScript appears on Web pages, we also investigated whether certain helpful features can be extracted from the enclosing Web page of the JavaScript.
For example, we have a Web page titled “A JavaScript Tic Tac Toe Game”. This title implicitly indicates JavaScript appearing on the page is going to be employed in a game.
The button with a value “Reset” is likely used to restore the default values in the form.