Advertisement
c0d3dsk1lls

button

Jul 2nd, 2022
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.38 KB | None | 0 0
  1. <center><button onclick="doSomething()" style="background-color:black;color:red;border-radius:5px">Im a button with a simple javascript..Click Me!!</button></center>
  2. <p id="test">When you click the button, this text will change to success!!</p>
  3. <script>
  4. function doSomething(){
  5. document.getElementById("test").innerHTML = "Success, Please visit https://codedskills.net";
  6. }    
  7. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement