Jump to content

View-source

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 68.38.250.93 (talk) at 05:34, 21 December 2008 (fixed to inform that it is fixed in Firefox. previous text implys it was never fixed). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The view-source protocol is a URI scheme used in HTML to create links which display the source code of a web page (usually in a popup window).

For example, this URL shows the source of the Wikipedia home page:

view-source:http://www.wikipedia.org/

Browser Support

Firefox and Internet Explorer both supported the view-source protocol, but support was dropped from Internet Explorer in Windows XP SP2 due to security problems[1]. Firefox also suffered a similar security issue (with combining view-source: and javascript: protocols)[2], but still supported the protocol in Firefox 1.5[3] after being fixed.

References