title: Switching between html files inside Firefox extension popup?
body: <p>I've been trying to port my Chrome extension over to Firefox. Most of the code worked fine, except for this one thing. The extension popup has <a href="https://i.stack.imgur.com/8ZMjE.png" rel="nofollow noreferrer">tab buttons</a> at the top which are supposed to switch between different html files (inside the popup) when clicked. However, when the buttons are clicked, the extension simply freezes/crashes.</p>
  <p>Here’s an example of the code for the &quot;contact&quot; tab button:</p>
  <pre><code> contactTab = document.getElementById(&quot;contact-tab&quot;)
   
   contactTab.addEventListener(&quot;click&quot;, function() {
       location = &quot;contact.html&quot;
   })
  </code></pre>
  <p>In the Chrome version of my extension I used <code>location.href</code> and it worked perfectly fine, this problem is only on Firefox. I’ve tried using <code>location.href</code>, <code>location</code> and <code>window.location</code>, but nothing has worked.</p>
  <p>How do I switch between html files in a Firefox extension popup?</p>