View-source URI scheme


The view-source URI scheme is used by some web browsers to construct URIs that result in the browser displaying the source code of a web page or other web resource.
For example, the URI view-source:http://example.com should show the source of the page located at .
On 25 May 2011, the 'view-source' URI scheme was officially registered with IANA per RFC 4395.

Browser support

and Internet Explorer both supported the scheme, but support was dropped from Internet Explorer in Windows XP SP2 due to security problems. Firefox also suffered a similar security issue, but still supported it in Firefox 1.5 after being fixed. In 2009 a new discovered bug was fixed in Firefox 3.0.9.
BrowserSupported?
Mozilla Firefox
SeaMonkey
Netscape
Internet Explorer 4, 5 and 6
Internet Explorer 6, 7, and 8 after Windows XP SP2
Safari 3.2.1
Safari 5, 6
Opera 7, 8, 9, 10, 11
Opera 15 and up
Google Chrome
Web
HP webOS