Html+javascript
BSmum
Messages postés
1
Statut
Membre
-
BSmum -
BSmum -
Bonsoir,
je developpe une application en javascript et je veut faire l'appel du code à partir d'un script html; je procede comme suit:
* script html:
<html>
<head>
<title></title>
<script src="absform2.js" >
</script>
</head>
<body>
</body>
</html>
mais ça marche pas :( avez vous une idée??
je developpe une application en javascript et je veut faire l'appel du code à partir d'un script html; je procede comme suit:
* script html:
<html>
<head>
<title></title>
<script src="absform2.js" >
</script>
</head>
<body>
</body>
</html>
mais ça marche pas :( avez vous une idée??
A voir également:
- Html+javascript
- Editeur html - Télécharger - HTML
- Telecharger javascript - Télécharger - Langages
- Br html ✓ - Forum Webmastering
- Afficher un tableau javascript en html ✓ - Forum Javascript
- Javascript arrondi ✓ - Forum Javascript
1 réponse
Normalement dans on head faut ecrire :
<script src="script/absform2.js" type="text/javascript" LANGUAGE="JavaScript"></script>
Et si jamais tu dois appeler une fonction bien presise tu ecrit ca dans ton body:
<script language="javascript" type="text/javascript">le nom de ta fonction;</script>
j'espére que ça t'aidera ^^
<script src="script/absform2.js" type="text/javascript" LANGUAGE="JavaScript"></script>
Et si jamais tu dois appeler une fonction bien presise tu ecrit ca dans ton body:
<script language="javascript" type="text/javascript">le nom de ta fonction;</script>
j'espére que ça t'aidera ^^
<script src="absform2.js" >
</script>
ça marche!