How do you make a page that can show its own source in javascript/html?

chiwawa626

Lifer
Aug 15, 2000
12,013
0
0
How do you make a page that can show its own source in javascript/html?

Theres gotta be some way for me to just have a button that runs a quick javascript function to print the source of the page into a div or something, how can i do this?