<input onclick="change()" type="button" value="Open Curtain" id="myButton1"></input>
<input type="button" value="Button Text Here">
const btn = document.getElementById("btn");
btn.addEventListener("click", ()=>{
if(btn.innerText === "Red"){
btn.innerText = "Blue";
}else{
btn.innerText= "Red";
}
});
Code Example |
---|
Html :: js coding practices airbnb |
Html :: how to enter through a button that is closed in a html code |
Html :: icon inside input |
Html :: import vue js |
Html :: input select and button on same line |
Html :: square in html |
Html :: html circle symbol |
Html :: react-burger-menu right |
Html :: carousel |
Html :: proper center grid |
Html :: spellcheck html |
Html :: headings in html |
Html :: html image styling |
Html :: how to add href of messaGing IN ANCHOR TAG |
Html :: change the font-size on a label html |
Html :: in html |
Html :: how to put h1 in html |
Html :: source html |
Html :: html heading tag |
Html :: bootstrap 5 growing spinner |
Html :: format json logs |
Html :: file read from outbox |
Html :: tt in html |
Html :: bootstrap badge-pill button |
Html :: Show all the tags |
Html :: continuous slider html |
Html :: navratri 2020 |
Html :: create json from excel |
Html :: HTML - Textbox appears when hovering over |
Html :: charles V and francis I |