The method and detailed steps are as follows:
1. The first step is to open the html editor, create a new html file, such as index.html, and then write the basic code, As shown below.
2. In the second step, after completing the above steps, enter the js code in the