title: Load a page with onclick method of an html button with parameters in the url
body: <p>I'm modifying a webpage and I would like to create a button that onclick it loads me a new page in the same window. For example, for a link to a webpage with some parameters it could be:</p>
  <pre><code>&lt;a href=&quot;www.mypage.com/page?param1=abc&amp;param2=345&quot;&gt;LINK TO THE WEBSITE&lt;/a&gt;
  </code></pre>
  <p>If I do this, the link loads correctly the website. If I modify it to:</p>
  <pre><code>&lt;a href=javascript:window.open(&quot;www.mypage.com/page?param1=abc&amp;param2=345&quot;, &quot;_self&quot;)&gt;LINK TO THE WEBSITE&lt;/a&gt;
  </code></pre>
  <p>I'm successful too. However, I would like to implement this on a button. Therefore I have:</p>
  <pre><code>&lt;button
     onclick=&quot;javascript:window.open('www.mypage.com/page?param1=abc&amp;param2=345', '_self')&quot;
  &lt;/button&gt;
  </code></pre>
  <p>However, now it loads &quot;www.mypage.com/page&quot;, and the parameters are erased, even I can see in the source code of the website they are there. Why? How can I implement this with a button?</p>