Skip to content

Instantly share code, notes, and snippets.

@tpthn
Created April 2, 2012 02:20
Show Gist options
  • Save tpthn/2280090 to your computer and use it in GitHub Desktop.
Save tpthn/2280090 to your computer and use it in GitHub Desktop.
javascript - view source of web page
//type this in the url field after page load
javascript:alert(document.documentElement.innerHTML);
@rubyFeedback
Copy link

Unfortunately this does not seem to show all of the HTML in use.

@jacketcoder
Copy link

Of course — it doesn’t show encoding and html tags. Also, no doctype. You gotta add them yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment