Advertisement
rutera

innerHTML

Dec 26th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. function clickme(){
  3.     document.getElementById('so').innerHTML="*************";
  4.  
  5. }
  6. </script>
  7. <p id="so">Hide my password</p>
  8. <button onclick="clickme()">HIDE</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement