title: How I can get result of event in browserView?
body: <p>How I can get result of event in browserView?
  I have:</p>
  <pre class="lang-js prettyprint-override"><code>browserView.webContents.executeJavaScript('
    let btn = document.createElement(&quot;button&quot;)
    btn.innerHTML = &quot;Click Me&quot;
    btn.addEventListener(&quot;click&quot;, function () {
      return &quot;Button is clicked&quot;
    })
    document.body.appendChild(btn)
  ').then(r=&gt; console.log(r))
  </code></pre>
  <p>What I need to do to get &quot;Button is clicked&quot; after click on button in main process and add to variable?</p>