Writing HTML | Return to Lesson 27a |

Testing HTML for Lesson 27a

The HTML for this page contains a JavaScript error. It should generate an error message when the page loads.

If you view the source of this web page, you will see the following JavaScript code that has a mistake in it (you will learn more about this command in the next lesson, but trust us- it has a mistake!):

<script type="text/javascript" language="Javascript">
<!--
document.write('<p>This shows what happens in a document.write statement
if it has an extraneous RETURN that breaks the commans in half');
//-->
</script>

Note that if you receive an error message it indicates the type of error, the line number of the HTML where the error occurs, and the location in the line where it found the error. Note that one error in a JavaScript code section can trigger many others that follow it, so fixing the first error may take care of others error messages displayed.

Also, note that the error prevents the button from following its instructions.



Writing HTML: Testing HTML for Lesson 27a
©1994-2002 Maricopa Center for Learning and Instruction (MCLI)
Maricopa Community Colleges

The Internet Connection at MCLI is Alan Levine --}
Questions? Comments? Visit our feedback center

URL: http://www.mcli.dist.maricopa.edu/tut/tut27a_ex/test.html