Page tree
Skip to end of metadata
Go to start of metadata

Specifies a resource that will be obtained from a module or library.




filePercent-encoded path and file name of the module that contains the resource.
typeOptional. String or numerical resource type. This can be either a custom resource or one of the predefined resource types that are recognized by the FindResource function. If a numerical resource type is specified, the number of the identifier must follow a # character. If this parameter is not specified, the default resource type is RT_HTML or RT_FILE.
idString or numerical identifier of the resource. If a numerical identifier is specified, the actual number of the identifier, not the identifier itself, must follow a # character. See the example for more information.


Available as of  Microsoft Internet Explorer 4.0 or later.

Security Alert

From Internet Explorer 6  Service Pack 1 (SP1), it is no longer possible to browse a local machine from the Internet zone. For instance, if an Internet site contains a link to a local file, Internet Explorer 6  SP1 displays a blank page when a user clicks on the link. Previous versions of  Windows Internet Explorer followed the link to the local file.
For purposes of decoding the res:// scheme, everything in the file path is treated as the domain. The colon (':') delimiter is allowed, but special characters such as backslash ('\') must be percent-encoded. Use '%5C' to encode the backslash character.
 #define MYBITMAP 234

// This is correct. 

// This is not correct. 

The following Uniform Resource Identifier (URI) retrieves a custom "XML" resource from a resource module in the "C:\windows\system32 directory.



For additional information about the Res: and About: protocols, click the article numbers below to view the articles in the Microsoft Knowledge Base:

  • 220830 Syntax of the Res: Protocol and Some Known Related Issues
  • 183978 INFO: The About: Protocol in Internet Explorer
  • 237769 RES Protocol with Custom Resource Only Works on Windows NT

For additional information about the XSL stylesheet, click the article number below  to view the article in the Microsoft Knowledge Base:

  • 282127 Browsing and Saving the Default MSXML XSL Stylesheet in Internet Explorer