Search
 
SCRIPT & CODE EXAMPLE
 

HTML

boton en html cambiar texto

<!DOCTYPE html>
<html>
<head>
</head>

<body>

<button type="button" id="botonOn" onclick="FbotonOn()"> on </button>

</body>
</html>

<script>
var valor = true
function FbotonOn() {
  var uno = document.getElementById('botonOn');
  valor?uno.innerText = "off":uno.innerText = "on";
  valor=!valor
}

</script>
Comment

PREVIOUS NEXT
Code Example
Html :: using emojis in html 
Html :: lan ips 
Html :: how to add see button in password input in html 
Html :: scrollbar in html div 
Html :: jspdf html to pdf angular 8 
Html :: html canvas input add 
Html :: Basic progressbar with percentage values 
Html :: google material icons 
Html :: twig form row label 
Html :: include javascript in html 
Html :: navbar tailwind 
Html :: vuejs v-model array 
Html :: source picture 
Html :: how should you use content_for and yield 
Html :: status code 201 
Html :: default php version ubuntu 20.04 
Html :: metro ui 
Html :: change text color in bootstrap 
Html :: boots form 
Html :: HTMLPageStructure 
Html :: wordpress add the html to the content by functoin.php 
Html :: you may need an appropriate loader to handle this file type html 
Html :: the <video tag with more control 
Html :: how to run html file in command prompt 
Html :: radio button in html 
Html :: svm e1071 cutoff 
Html :: twitter html 
Html :: Strip off tags in text 
Html :: javascript toggle div 
Html :: kodingan mencatumkan keterangan gambar header html 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =