- <!DOCTYPE html>
- <htm<html>l>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <script>
- function chg_name()
- {
- document.getElementById('btn1').value = "I am New Name";
- }
- </script>
- </head>
- <body>
- <input id="btn1" value="Click TO change My Name" type="button" onclick="chg_name();">
- </body>
- </html>
Change button text :- JavaScript
Reviewed by Network security
on
November 13, 2019
Rating:
No comments: