title: How to open a new window and execute a method in the new window ?
body: <p>I have a button on   html page. When I click this button, some changes happen on this page . </p>
  
  <p>I need the following : when i click the button, I want a new window with the same url to open, and that method to execute in that new window . </p>
  
  <p>THis is what I tried </p>
  
  <pre><code>   &lt;button class="button" onClick="window.open('myUri'); myMethod();"&gt;&lt;span class="icon"&gt;Open&lt;/span&gt;&lt;/button&gt; 
  </code></pre>
  
  <p>But this does not work . How can I do this ? </p>