Type the address "about
:config" in the Firefox addressbar, and go.
Now you should see the "filter bar". In there, type "mouse".
Somewhere near the top you should now see a line: "middlemouse.contentLoadURL"
Double click on that line -> shoud switch it to "disabled".