/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function addEngine() { var xml_url = 'http://opensearch.xml.url/opensearch.xml'; var img_url = 'http://opensearch.image.url/opensearch.gif'; var name = 'OpenSearch'; if (typeof window.sidebar.addSearchEngine != 'undefined') window.sidebar.addSearchEngine(xml_url, img_url, name, 'General'); else if (typeof window.external.AddSearchProvider != 'undefined') window.external.AddSearchProvider(xml_url); }
URL: http://blog.connor.hu/2009/12/02/opensearch-es-javascript/
Comments
