title: Chrome extension addEventListener not working correct
body: <p>My extension has a popup window with one button. When this button clicked, extension create a new tab. But when I clicked on browser-action button, new tab is creating without opening a popup window.</p>
  
  <p>Manifest.json</p>
  
  <pre><code>{
  "manifest_version": 2,
  "name": "myApp",
  "version": "0.1",
  "description": "myApp",
  
  
  
  "permissions": [
  "tabs",
  "notifications"
  ],
  "browser_action": {
  "default_icon":"rLogo.png",
  "default_popup":"popup.html"
  }
  }
  </code></pre>
  
  <p>popup.html</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div style="width:250px;height:150px"&gt;
  &lt;input type = "button" id="open"&gt;
  &lt;/div&gt;
  &lt;script src = "popup.js"&gt;
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>popup.js</p>
  
  <pre><code>function openRoom(url)
  {
      chrome.tabs.create({url:url});      
  };  
   document.addEventListener('DOMContentLoaded', function() {      
  var link = document.getElementById('open');
   link.addEventListener('click',openRoom("https://www.google.com"));
   });
  </code></pre>