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