The information in this article applies to:
SUMMARYThis article describes how to create a hyperlink on a Web page that shows the source code for the current page or another page when the hyperlink is selected. MORE INFORMATION
Using an anchor tag with its associated HREF parameter, you can cause a
hyperlink to display the source of a Web page when the hyperlink is
clicked. To do so, set the value of the HREF parameter equal to "view-
source:someFile.htm" where someFile.htm is the name of an HTML file that
you want to show using the default editor for HTML source code.
Some LinkThe following HTML code demonstrates how to show the source code for http://www.microsoft.com/ie40.htm when the hyperlink is pressed. NOTE: When you use this protocol a copy of the file is written to the temp directory.
REFERENCESFor more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.asp Additional query words: kbDHTML kbHTMLObj kbIE400 kbIE401 kbIEObj kbInternet kbSDKInet400 kbSDKInet401
Keywords : kbIE500 kbDSupport |
Last Reviewed: July 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |