This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
Allows web sites to register themselves as possible handlers for content of a particular MIME type.
navigator.registerContentHandler(mimeType, uri, title);
mimeTypeis the desired MIME type as a string.
uriis the URI to the handler as a string.
titleis the title of the handler presented to the user as a string.
navigator.registerContentHandler( "application/vnd.mozilla.maybe.feed", "http://www.example.tld/?foo=%s", "My Feed Reader" );
For Firefox 2 and above, only the
application/rss+xml MIME types are supported. All values have the same effect, and the registered handler will receive feeds in all Atom and RSS versions (see bug 391286).
Firefox is the only browser that implemented this feature, it wasn't implemented to the standard. This feature has since been removed from the HTML standard and shouldn't be used.
The definition of 'registerContentHandler()' in that specification.
|Recommendation||This feature is present in HTML 5.2, but has since been removed from the WHATWG HTML Living Standard.|
We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari|
|Basic support||?||2.0 (1.8.1) – 59 (59)||?||?||?|
|Feature||Android||Firefox Mobile (Gecko)||IE Mobile||Opera Mobile||Safari Mobile|
- Web-based protocol handlers
- Web activities, particularly view and open
- XPCOM Interface Reference > nsIWebContentHandlerRegistrar > registerContentHandler - This shows how to use this function XPCOM scope