Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why the script is executed?
Message
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00810471
Message ID:
00810648
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform