Need Help With Middle Click To Open In New Tab
<p>I have a custom button add-on for Firefox that will goes to Facebook in the currently viewing tab and would like to add middle click to open Facebook in a new tab but im not sure how. I looked around and found that I need to use the if window.open(url) but im not sure where to put them to get it to work.
Here is the current java script code.</p>

<p>EDIT: The button is on the Firefox toolbar, not in a webpage. 
Link to add on <a href="https://addons.mozilla.org/en-US/firefox/addon/facebook-button/" rel="nofollow">https://addons.mozilla.org/en-US/firefox/addon/facebook-button/</a></p>

<pre><code>CustomButton = {

1: function () {const url = "http://www.facebook.com"


document
  .getElementById("content")
  .webNavigation
  .loadURI(url, 0, null, null, null)   
  },

}
</code></pre>

<p>Thanks for any help and guidance, If you see anything else wrong with the code, feel free to mention it.</p>
