Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 7
    Though it is convenient for debugging in Firefox, toSource() does not work in IE. Commented Apr 10, 2011 at 15:42
  • 8
    toSource() is not a recognised standard, so cannot be guaranteed to be supported in all browsers. Commented Apr 10, 2011 at 15:46
  • 11
    Ahh, thank you for pointing that out. I will leave my answer here for others who are unaware of that. Commented Apr 10, 2011 at 15:47
  • I wish I could upvote you more, as this is a brilliant solution for environments that have javascript (but the console log is inconvenient/impossible to access). Commented Nov 21, 2014 at 21:25
  • 4
    this is simply not supported on any modern browser, how is this getting so many upvotes? am I missing anything? developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… Commented Nov 16, 2020 at 22:11