Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript Ecrire une fonction afficherTable2() qui affiche la table de multiplication de 2 dans le contenu d’un élément p.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head> <title> table de multiplication</title> <script type="text/javascript"> function calculer() { 	var nombre = parseInt(document.getElementById('Number').value); 	var resultat = document.getElementById('Result');	var tables = "";		for (i=0; i<=10; i++) {		var solution = nombre*i;		tables += i+" x "+nombre+" = "+solution+"<br />";	}		resultat.innerHTML = tables;} </script> </head> <body> <input type="text" id="Number"> <input type="button" value="Calculer" onclick="calculer();"> <div id="Result"></div> </body> </html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: node red using tcp request 
Javascript :: Unable to load schema from https json SchemaStore org eslintrc 
Javascript :: format large texts 
Javascript :: Using Scrip as Web app 
Javascript :: jquery ajax send data to wordpressajax_url not defined 
Javascript :: mongoose ensureindex 
Javascript :: moodle confirm box 
Javascript :: delete all properties from an javascript object 
Javascript :: create component with COUNT 
Javascript :: autosize a textarea using Prototype 
Javascript :: find single quote and replace in javascript 
Javascript :: CSS overflow table row positioning 
Javascript :: express serve node module 
Javascript :: reactvs y axis range 
Javascript :: javascript source code for digital meter 
Javascript :: if text is in curly braces replace to div site:stackoverflow.com 
Javascript :: no unuseds varsnreactjs 
Javascript :: modal nodejs 
Javascript :: take user value and append value in js 
Javascript :: javascript date now format yyyy-mm-dd hh24 mi ss 
Javascript :: check screen rotated js 
Javascript :: react passport session 
Javascript :: reply nodejs terminal 
Javascript :: Process.ChildProcess._handle.onexit 
Javascript :: node.js version change to 6.14.15 windows 
Javascript :: reinitialise or reset all values in mapping in solidity 
Javascript :: escaping less than great than signs in react 
Javascript :: How to assign set a function as Variable 
Javascript :: cant resolve module after typescript install 
Javascript :: import js with vite ts 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =