java button action on anchor tag code example Example: button with href onClick={() => {window.location.href="https://www.golfballs.com/"}}