Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why the script is executed?
Message
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00810471
Message ID:
00810648
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform