How to open search query in new tab or window?
Opened this issue · 1 comments
When i type in the search bar and click return, how do i ensure that it opens the results in a new tab?
When i type in the search bar and click return, how do i ensure that it opens the results in a new tab?
The HTML property target
works just as well with the <form>
tag as it does with the <a>
tag.
So if you want the searches to open in a new tab you can change line 98 in script.js
to this:
var string = '<form method="get" action="' + url + '"
target="_blank"
>'
Hope this helps!
Actually I am currently trying to read the code and come up with a way to have one single search box with a check box for each engine above (or somewhere next to ) it, then have the script open a query for the same search string in a new tab for each checked engine. This will take a noob like me some time so anything to point me in the right direction is much appreciated. The next step would be to have one check box that (un)checks all the dictionaries at once, one that (un)checks all image searches and so forth …
Awesome script the way it is already. Thanks!