I want to copy some html code from the web inspector but am only able to copy one line at a time. Is there any way to select a block of elements or all elements?
If you right click on any element in the Web Inspector, then click "Copy as HTML" on the resulting pop-up menu, you can then paste the html for that element (and all enclosed elements) into your editor. You can get the entire document by doing this with the <html>
element.
On the console, try document.documentElement.outerHTML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With