javascript - a HTML tag to search the text in href -


i try use html tag open text in href in new window search in default search engine.

<a href="some text" rel="search" target="_blank">some text</a> 

when user clicks text, new tab should open , browser search "some text" in default search engine. write in address bar , browser searches in default search engine.

is possible ? if yes, please let me know how it.

update:

the problem have list of govt authorities not have actual url redirect users website trying if full name of authority searched in search engine first link theirs , user can go site.

well don't think can default search engine. if can use google search engine @ answer.

if going use html

https://www.google.com/search?q=<text want search> 

and if going go js

window.open("https://www.google.com/search?q="+<text want search>,"_blank"); 

how launch google search in new tab or window javascript?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -