Menu
JS never ceases to mystify me. Can some generous soul explain to me why this (simple) code doesn’t work:
<script type=”text/javascript” language=”javascript1.5″>
window.onload=message;
function message()
{
document.alert(“you are inside the message function”);
}
</script>
</head>
<body>
<script type=”text/javascript”>document.write(“hello world”); </script>
</body>
</html>
the file will produce “hello world” but why doesn’t also produce the alert message “you are inside the message function” ?
captsig
actual link is: [url]http://www.captsigerson.com/testjs.html