Newbie question here. The following link works well to open a new window to a specified webpage.
<a onclick="window.open('','page','location=0,toolbar=0,...')"
href="mypage.html" target="page">My Link</a>
I need to replace the link with a button, but can't get it to work. Here's what I've got:
<button onclick="window.open('','page','location=0,toolbar=0,...')"
href="mypage.html" target="page"
type="button">My Button</button>
It appears that href
and target
are not attributes of button. Looking for recommendations how to fix this for best browser compatibility.