title: Trying to make an html button on click open url in new tab
body: <p>i'm trying to make button on click open URL in new tab, when i click on the html button it's just redirect me to the page without opening new tab. how can i fix it?</p>
  <p><strong>Here is the code</strong></p>
  <pre><code>  &lt;button target=&quot;_blank&quot; onclick=&quot;window.location.href='https://myhearing.co.il';&quot; class=&quot;btn-view-site&quot;&gt;View
                  website&lt;/button&gt;
  </code></pre>