From 04efba8ccc1d8c4058905bf51b6ef97b83ea545e Mon Sep 17 00:00:00 2001 From: JunkJumper Date: Wed, 22 Jan 2020 17:02:42 +0100 Subject: [PATCH] defTitre1 ok --- TD1/js/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TD1/js/main.js b/TD1/js/main.js index 2c0aa51..3b0c77a 100644 --- a/TD1/js/main.js +++ b/TD1/js/main.js @@ -5,8 +5,10 @@ function init(){ defTitre1(); } -function defTitre1(){ - console.log(defTitre1()); +function defTitre1() { + if(document.title = document.getElementById("titre").innerText) { + console.log(" set : Ok Everypony !"); + } } function sayHello() {