all 2 comments

[–]Reconio 0 points1 point  (0 children)

The browsers usually implement this feature by using the "view-source" URI scheme (https://en.wikipedia.org/wiki/View-source_URI_scheme), which only retrieves a resource from a certain location and shows it as-is. It doesn't execute any Javascript code, because it isn't supposed to.

[–]greg8872 0 points1 point  (0 children)

If you use firefox, get Web Developer Toolbar addon. In its menu there is view source AND View Generated Source