on click in a tag
snippet in html

on click in a tag

user9954

<a onclick='newwin()'>Anchor</a>