I’m stuck using a crappy website that is very dynamic and uses a lot of JavaScript, basically it has a table with many rows, each containing a link. Initially the rows are in a very poor order and I click various buttons to sort them. However, when I click a link and then try to go back to this page, when I go back the ordering is back to its useless initial state.

To overcome this problem I would like to open links in new tabs. But since the links have the location javascript:void(0) how can I do this? If I try click with the middle button of the mouse, a new empty tab opens. I’m using Firefox and am willing to install addons.

Here’s a link to a download of the source code.

  • 1
    what website are you refering to ? – niceman Mar 5 '15 at 10:14
  • @niceman it's not public, would you like me to tell you a certain detail? – Celeritas Mar 5 '15 at 11:04
  • well what do you mean by "it doesn't go back to where I want it" ? what do you want ? – niceman Mar 5 '15 at 11:12
  • The previous page contains many links which are initially sorted in an order not useful to me. After clicking some buttons (e.g. sort by date etc.) then the list becomes useful. However, when I click on one of the links and leave the page and then go back to it, the list is in the initial useless order. – Celeritas Mar 5 '15 at 11:18
  • hmmm, this is a problem with the website itself(they didn't program it well) – niceman Mar 5 '15 at 11:20

There was once an add-on called "Smart Middle Click" that provided the ability to middle-click JavaScript links. It's no longer available at addons.mozilla.org or the author's website, but I've uploaded a copy for you:


SMC doesn't work with all JS links, but rarely has trouble with the type you described. Hope it does the job for you!

|improve this answer|||||
  • How do you use the add on? – Celeritas Mar 25 '15 at 7:08
  • Install add-on, middle-click a JavaScript link. It'll either work or it won't. – blackwind Mar 25 '15 at 7:12
  • dang it didn't work – Celeritas Mar 25 '15 at 7:28

Since Smart Middle Click didn't work for you, try this:

  • Open the Developer Console (Ctrl+Shift+K)
  • Click one of your links
  • Quickly hit Esc (or the Stop button) before the page changes
  • Middle-click the resulting link in the Console

It's a significantly less convenient solution, but it beats what you're doing now, and unfortunately, short of writing your own add-on or Greasemonkey script, it's your last remaining option.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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