Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to open search query in new tab or window? #9

Open
sachin3767 opened this issue Oct 1, 2016 · 1 comment
Open

How to open search query in new tab or window? #9

sachin3767 opened this issue Oct 1, 2016 · 1 comment

Comments

@sachin3767
Copy link

When i type in the search bar and click return, how do i ensure that it opens the results in a new tab?

@moontan
Copy link

moontan commented Jul 26, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants