Answers for "use function on btton"

3

button functions html

<script>
 function myFunction() {
   alert("ALERT");
 }
</script>
<button onclick="myFunction">Click</button>
Posted by: Guest on September-22-2020
0

how to create button on button click

-------------------------------------------
||| Put it All in a Function Css DOM JS |||
-------------------------------------------

var btn = document.createElement("a");
btn.innerHTML = "Get Account";
btn.style.Color = "blue";
btn.style.padding = "15px 20px";
btn.style.border = "1px solid #ffffff";
btn.style.backgroundColor = "#307cee";
btn.style.borderRadius = "30px";
btn.href = "http://example.com";
btn.style.textDecoration = "none";
btn.style.display = "inline - block";
btn.style.innerHTML = "Underline Removed";
document.body.appendChild(btn);
Posted by: Guest on December-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language