title: Electron: How to minimize a window from a rendered process
body: <p><strong>Scenario</strong></p>
  
  <p>I have a window and it has an <code>add task button</code> that is opening a window. Everytime user clicks on it, it opens a window. I have a button on <code>add task window</code> that minimize it. How to implement this minimize button?</p>
  
  <p><strong>Code</strong></p>
  
  <p>I am able to <code>close</code> <code>maximize</code> window by using the code below:</p>
  
  <pre><code>var winclose = function () {
      window.close();
  }
  
  var winmaximize = function () {
      window.moveTo(0, 0);
      window.resizeTo(screen.width, screen.height);
  }
  </code></pre>
  
  <p>However, I am not able to find any function that can minimize a window from rendered process.</p>
  
  <p>Please help, many thanks;</p>
  
  <p>Note:</p>
  
  <p><em>Browsers do not provide a function to devs to minimize them. but here
  is a different scenario. Here I am using chromium provided by Electronjs. So, there must be a way to do so as we are developing a desktop application</em></p>
  
  <p>Dummy Download link: <a href="https://onedrive.live.com/redir?resid=628606F852453EF0!11473&amp;authkey=!ACoDxbjyxrqkpM4&amp;ithint=folder%2Chtml" rel="noreferrer">download from OneDrive</a></p>