title: How can I set the ID of a browser window?
body: <p>Basically, I want to do some communication between 2 ipc renderers. Based on some information in <a href="https://github.com/electron/electron/issues/991" rel="nofollow noreferrer">https://github.com/electron/electron/issues/991</a>, I am trying to set the id of a browser window which I'll eventually use to get the browser window and send the events across without involving main.js.</p>
  
  <p>Need to know how i can set the id of a browser window. </p>
  
  <p>I tried the following:</p>
  
  <pre><code>chatWindow = new BrowserWindow({
      x: 10,
      y: 10,
      width: 500, 
      height: 500,
      id: 1234,
  });
  </code></pre>
  
  <p>The above didn't work. The following two didn't work either.</p>
  
  <pre><code> chatWindow.id = 1234;
   chatWindow.id(1234);
  </code></pre>