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.




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


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.


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

<A HREF="view-source:HTTP://">
Click to view source.