Fichier JavaScript
Résolu
M.dl11
Messages postés
4
Date d'inscription
Statut
Membre
Dernière intervention
-
M.dl11 Messages postés 4 Date d'inscription Statut Membre Dernière intervention -
M.dl11 Messages postés 4 Date d'inscription Statut Membre Dernière intervention -
Bonjour, j'ai fait un fichier JavaScript pour faire un pop up mais quand je l'exécute avec l'application '' HTML", sa ne marche pas :/
Bien sûr, j'ai mis l'extension .html .
Qu'est ce que je dois faire pour que sa marche ?
Voici le code:
<!doctype html>
<html>
<head></head>
<body>
<p>Click the button to display an alert box.</p>
<button onclick="myFunction()">Click me</button>
<script>
function myFunction() {
alert("I am an alert box!");
}
</script>
</body>
</html>
Bien sûr, j'ai mis l'extension .html .
Qu'est ce que je dois faire pour que sa marche ?
Voici le code:
<!doctype html>
<html>
<head></head>
<body>
<p>Click the button to display an alert box.</p>
<button onclick="myFunction()">Click me</button>
<script>
function myFunction() {
alert("I am an alert box!");
}
</script>
</body>
</html>
A voir également:
- Fichier JavaScript
- Fichier bin - Guide
- Fichier epub - Guide
- Fichier rar - Guide
- Comment réduire la taille d'un fichier - Guide
- Fichier .dat - Guide