Guest User

Untitled

a guest
Nov 17th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <head>
  3. <title>Demo Dev Tools</title>
  4. </head>
  5. <body>
  6. <h1>Demo Dev Tools</h1>
  7. <!-- In the Chrome dev tools select the P element > break on > Attrib Modifications
  8. -->
  9. <p id="js-my-text__id">This is text</p>
  10. <a id="js-click-me__id">Click Me</a>
  11. <hr>
  12. <a id="js-log-stuff__id">Log Stuff to Console</a>
  13. <script>
  14. document.getElementById("js-click-me__id").addEventListener("click", function(){
  15. var eMyText = document.getElementById("js-my-text__id");
  16. eMyText.style.color = "#FF0000";
  17. }, true);
  18. document.getElementById("js-log-stuff__id").addEventListener("click", function(){
  19. var eMyText = document.getElementById("js-my-text__id");
  20. console.clear();
  21. console.group("Refine debug");
  22. console.dir( eMyText );
  23. console.count("ducks!");
  24. console.count("ducks!");
  25. console.error("Yikes!");
  26. console.groupEnd("Refine debug");
  27. }, true);
  28. </script>
  29. </body>
  30. </html>
Add Comment
Please, Sign In to add comment