view-source Protocol

在浏览器地址栏中输入view-source:url,可以查看url页面的源代码。

view-source协议在IE和Safari的高版本中的支持被移除了,支持的浏览器见下。

Browser Supported?
Mozilla Firefox supported
Mozilla SeaMonkey supported
Netscape supported
Internet Explorer 45 and 6 supported
Internet Explorer 67, and 8 not supported after Windows XP SP2
Safari 3.2.1 supported[citation needed]
Safari 5, 6 not supported
Opera 7, 8, 9, 10, 11 not supported
Opera 15 and up supported
Google Chrome supported[7]
Web supported[citation needed]
HP webOS supported in-browser via a homebrew app called Internalz Pro[8]