bonjour,
j'ai créé une page web toute simple
=> lorsque j'ouvre le fichier en local, je n'ai pas d'erreur
=> lorsque j'ouvre le fichier a partir de mon serveur, j'ai 2 erreurs :
- missing ; before statement : Init(){\n
- Init is not defined : onload(load )
a priori, la deuxième erreurs est du à la premiere
d'ou peut venir le probleme ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > <head> <title>toto</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script type="text/javascript"> Init(){ b = 1; }; MAJListBox(a){} CtrlVID(a){} CtrlVID(a){} </script> </head> <body onload="Init();"> </body> </html>
Partager