In this step-by-step, you add HTML formatting tags and a second embedded script. The formatting tags will make the resulting Web page look a little nicer. A second message on the page helps you to understand the interaction between HTML and JavaScript.
1. Open Notepad, SimpleText, or your favorite text editor if it is not already open.
2. If the js-one.html or js-one.htm file is not already open in the text editor, click File on the menu bar, and then click Open to open the js-one.html or js-one.htm file you created in the previous step-by-step.
3. Click File on the menu bar, click Save As, and then save the HTML file as js-two.html or js-two.htm in the same folder to preserve the js-one.html file.
4. Add the two sections of HTML and JavaScript code after the tag and then after the tag exactly as shown in bold in this step and in bold in Figure 6–3.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here