There are actually several ways to view the webpage source code. The most common method is to directly select "view webpage source code" in the browser, but sometimes this method cannot work, the following describes several simple methods for your reference!
First: view-source method
View-source is a protocol that is basically supported by every browser in the early stage. But I don't know why. IE no longer supports this protocol since IE6 Beta2. This method can only be used in FireFox now!
Usage: Enter
View-source:
Press enter to view the source code of the webpage.
Method 2: JavaScript
This method does not seem generic either. It was successfully tested on IE6 and Opere browsers, but it was not successful on FireFox!
Usage: Enter
Javascript: s0000document.doc umentElement. outerHTML; document. write (""); document. body. innerText = s;
Press enter to view the source code of the webpage.