How to Create a Web Link to Add a Custom Search Provider
You can publish a link on a Web page to allow users to add a custom search engine.
First, create an OpenSearch 1.1 Extensible Markup Language (XML) file that describes your search engine.
For example, the following XML file describes a search engine that can be used to search the Microsoft.com Web site.
<?xml version="1.0" encoding="UTF-8" ?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName>Microsoft.com</ShortName> <Description>Microsoft.com provider</Description> <InputEncoding>UTF-8</InputEncoding> <Url type="text/html" template="http://search.microsoft.com/results.aspx?q={searchTerms}" /> </OpenSearchDescription>
To create your own OpenSearch XML document, simply replace the template attribute in the <URL> element with the URL of your search engine, inserting {searchTerms} at the location in the URL where search terms appear.
Note For detailed information about OpenSearch documents, visit http://www.opensearch.org/home.
After you create an OpenSearch XML document, you can allow users to add it from a Web page by using a window.external.AddSearchProvider("<URL>") call within a link. When users click the link, they will be prompted to add the search engine. The following example demonstrates the required HTML. (You must replace "<URL>" with the location of your OpenSearch XML document.)
<a Href="#" onClick="window.external.AddSearchProvider("<URL>");">Add Search Engine </a>
In this tutorial:
- Managing Windows Internet Explorer
- Internet Explorer 8 Improvements
- InPrivate Browsing
- InPrivate Filtering
- Compatibility View
- SmartScreen
- Domain Highlighting
- Tab Isolation
- Accelerators
- Improvements Previously Introduced in Internet Explorer 7
- User Interface Changes
- Tabbed Browsing
- Search Bar
- How to Create a Web Link to Add a Custom Search Provider
- How to Configure Custom Search Providers Using the Registry
- How to Configure Custom Search Providers Using Group Policy
- RSS Feeds
- Improved Standards Support
- Expanded Group Policy Settings
- Defending Against Malware
- How Protected Mode Improves Security
- How the Protected Mode Compatibility Layer Works
- How to Solve Protected Mode Incompatibilities
- URL-Handling Protection
- Address Bar Visibility
- Cross-Domain Scripting Attack Protection
- Controlling Browser Add-ons
- Add -on Manager Improvements
- Protecting Against Data Theft
- Security Status Bar
- How the Smart Screen Filter Works
- How to Configure Smart Screen Options
- Deleting Browsing History
- Blocking IDN Spoofing
- Security Zones
- Understanding Zones
- Configuring Zones on the Local Computer
- Configuring Zones Using Group Policy
- Network Protocol Lockdown
- Managing Internet Explorer Using Group Policy
- Group Policy Settings for Internet Explorer 7 and Internet Explorer 8
- New Group Policy Settings for Internet Explorer 8
- Using the Internet Explorer Administration Kit
- Troubleshooting Internet Explorer Problems
- Internet Explorer Does Not Start
- An Add-on Does Not Work Properly
- Some Web Pages Do Not Display Properly
- Preventing Unwanted Toolbars
- The Home Page or Other Settings Have Changed