JavaScript ViewSource


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>JavaScript ViewSource</title>
  5.  
  6. <script type='text/javascript'>
  7. function ViewSource() {
  8. window.location = "view-source:" + window.location.href }
  9. </script>
  10.  
  11. </head>
  12. <body>
  13.  
  14. <a href=javascript:ViewSource()>View Source you lazy</a>
  15.  
  16. <script language="javascript">
  17. $(document).ready(function() {
  18. $(".sexy").lettering();
  19. });
  20. </script>
  21.  
  22. </body>
  23. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.