The code is not wrapped in a function.
Script code execute as it was read by the browser.
<SCRIPT>
<!--
function xyz()
{
alert("Your doing great!")
}
-->
</SCRIPT>
>Hi everybody,
>
>In this simple page
>
><HTML><HEAD><TITLE> Tnis is a test </TITLE>
><SCRIPT>
><!--
> alert("Your doing great!")
>//-->
></SCRIPT>
><BODY>
><H1> Here are the questions</H1><P>
><a href = " " onMouseOver = "alert('Good Job!')">Place your mouse here</a>
></BODY></HTML>
>
>why the top script is executed? It is not called from anywhere...
>
>Thanks in advance.
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca