Chrome does not support adding searchEngine through javascript 'window.external.AddSearchProvider(url)'

1k Views Asked by At

I am here to clarify an issue am facing in chrome alone and the issue is - 'I can't able to add My Site in chrome search engine via Javascript window.external.AddSearchProvider(xml_url) , However,on earlier times, it worked properly without any issues.'

I am not doing auto-adding my site to search engine with help of '<link>' tag (however, this too does not worked for me)

The 'window.external.AddSearchProvider(xml_url) works fine in firefox as earlier,,, The problem is only with the chrome, since, chrome supported earlier, and don't know the root cause of not able to add now. Please help me to figure out the issue by which i cant able to add in chrome Search Engine.

Thank you :)

1

There are 1 best solutions below

2
On

Unfortunately window.external.AddSearchProvider is obsolete. It is working in Firefox but is no longer supported.

The <link> tag that you add in your site's <head> is for Autodiscovery of search plugins feature, this will list your site search engine in the configurations of the browser.

In chrome will list at chrome://settings/searchEngines