diff --git a/basic-web/basic.html b/basic-web/basic.html index 6710a982a49a722ee9d78c6fff5d1b4eb6c99abd..07c22ca7e4b8e300dc5e6063b6fc1c03f0119665 100644 --- a/basic-web/basic.html +++ b/basic-web/basic.html @@ -3,11 +3,12 @@ <head> <meta charset="utf-8"> <link rel="stylesheet" href="style.css"> + <script src="script.js"></script> <title>Stage 3ème</title> </head> <body> <h1>Découverte du laboratoire</h1> - <h2>Le métier d'ingénieur</h2> + <h2 onclick="disQuelquechose()">Le métier d'ingénieur</h2> <p>Bonjour</p> <ol> <li>BAC L</li> diff --git a/basic-web/script.js b/basic-web/script.js new file mode 100644 index 0000000000000000000000000000000000000000..de7bd1cac44eb0c917fdb12c9daafccaa5c87a22 --- /dev/null +++ b/basic-web/script.js @@ -0,0 +1,4 @@ +function disQuelquechose () { + alert ("J'ai cliqué sur le titre"); +} +