view-source Protocol

Obsolete for Microsoft Internet Explorer 6 for Windows XP Service Pack 2 (SP2) and later. For earlier versions, opens a Web page in the client's default HTML editor.

Syntax

view-source:sURL

Tokens

  • sURL
    Obsolete. Specifies a URL. You must specify an absolute path.

Remarks

Available as of Internet Explorer 4.0 or later.

Internet Explorer 6 for Windows XP SP2 and later. For security reasons, the view-source protocol is no longer supported. To view the source code for a URL on a Windows XP SP2-based computer, choose the Source command on the View menu.

Example

The following example shows a link that will open a file for viewing.

<A HREF="view-source:https://www.microsoft.com/default.asp">
Click to view source.
</A>