Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've got a firefox keyword ("alpha") to search Wolfram|Alpha, but if I type something like "alpha 1+1" then Wolfram|Alpha will search for "1 1"; the plus sign gets eaten en route

Luckily for me this problem was found and solve by this guy. Sadly his solution opens the search in the current tab, is there a way I can alter the Javascript to open in a new tab instead?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Surrounding window.open with void() opens in a new tab without changing the current window's content.

javascript:void(window.open("http://www.wolframalpha.com/input/?i="+encodeURIComponent("%s")));
share|improve this answer
add comment

After playing around with the javascript for a bit I have decided that the answer is "no".

While you can get it to open WA in a new tab with

javascript:window.open("http://www.wolframalpha.com/input/?i="+encodeURIComponent("%s"));

it replaces the current window's content with [Object Window] which is just plain annoying.

Your best bet may be to install the Open Bookmarks In New Tab add-on for firefox.

share|improve this answer
    
That's the same answer I came to. Ah, well. If no-one has a better answer I'll accept yours. Thanks for the link too! –  Oscar Cunningham Apr 4 '11 at 14:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.