Rechercher dans ce site web

Choose your language

Nos partenaires

Annonces publicitaires
CBS 
BIEN ETRE ET SANTE


COSMETIQUE - COIFFURE - SHOPPING

 Votre hygiène intime nous préoccupe .


Nous avons des solutions à vos problèmes d'hygiène intime



 
Recevez nos conseils  pour choisir une coiffure qui vous rend special 


Trouvez des vêtements à votre goût chez nous !
 
 
 
Peut être un graphique de ‎texte qui dit ’‎Experience the future of digital payments with YEM Pay. Our blockchain-powerec platform offers offerssecure, secure, instant transactions for businesses and consumers using YEM BenchmarkCoin. Coin. DUNDATION TECT EM YEM YEM ער. WE EM حم ¥ ATRN YEM YEMPAY PAY‎’‎


    ACCUEIL MENU   >  CONTACTS  >  VOIR LA LISTE DES COURS > emploi

   Projets UN/DNIProjets SF > RECREATION  >  PONT > EMPLOI   

   CONSULTATIONS  > TRADING  > CODES SOURCES  >  Quitter la page


Compteur de clics en js

Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <button id="boutonClic" class="bouton">
  Cliquez ici
</button>

<p>
  Vous avez cliquez <span id="nombreClics">0</span>     fois.
</p>

<button id="desactiver" class="bouton">
  Désactiver le compteur
</button>
              
            
!

CSS

              
                body {
  font-family: helvetica;
  font-weight: bold;
  background: #f7b9b9;
}

.bouton {
  display: block;
  margin: 2rem auto;
}

p {
  text-align: center;
} 
              
            
!

JS

              
                var nombreClics = 0;

function comptage() {
  nombreClics++;
  document.getElementById("nombreClics").textContent   = nombreClics;
}

document.getElementById("boutonClic").addEventListener("click", comptage);

document.getElementById("desactiver").addEventListener("click", function(e) {
    document.getElementById("boutonClic").removeEventListener("click", comptage);
});
              
            
!
999px

Console