I have what is likely a tyro question; I have 35 years experience in software, but JavaScript is new to me.
My html page (excerpted) looks like this:
[CODE]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 3.2 Final//EN”>
<html>
<head>
<title>Stuff in Alabama</title>
<link rel=stylesheet href=”/th/styles/style_i4.css” type=”text/css”>
<script language=”javascript”>
function display1 (st, URL, producer, title, address, address2, city, phone1, phone2, fax, email)
{
alert (‘In display function.’);
document.write (‘<tr><td>’);
// yada, yada
document.write (‘</td></tr>n’);
}
</script>
</head>
<body color=0>
<h1>Alabama</h1>
<div align=”center”>
<a name=”Anniston”></a><h2>Anniston Area:</h2>
<table border width = “50%”>
<script language=”javascript”>
alert (‘Alert1’);
display1 (‘al’, ‘www.alpha.com/’, ”, ‘Alpha’, ‘Address’, ”, ‘City’, ”, ”, ”, ”);
alert (‘Alert2’);
display1 (‘al’, ‘beta.com’, ”, ‘Beta’, ‘Addressb’, ”, ‘cityb’, ”, ”, ”, ”);
</script>
</table>
<a name=”Auburn”></a><h2>Auburn Area:</h2>
<table border width = “50%”>
<script language=”javascript”>
alert (‘Alert1b’);
display1 (‘al’, ‘www.alpha.com/’, ”, ‘Alpha’, ‘Address’, ”, ‘City’, ”, ”, ”, ”);
alert (‘Alert2b’);
display1 (‘al’, ‘beta.com’, ”, ‘Beta’, ‘Addressb’, ”, ‘Cityb’, ”, ”, ”, ”);
</script>
</table>
</div>
All I get out of this is the first alerts after the <script> tags. The display1 function does not get executed (the alert in there never happens), and execution seems to skip to the next </script> tags, because all the <h2> titles are there. but the second alert in either case never happens. So, what part of the JavaScript Guide did I miss here?