Navigating to external URL with a button

Hi all, I’m wanting to navigate to an external URL that isn’t a route in my application. The Anchor element provides this functionality, however I don’t want a link, I instead want a Button. Is there any way I can attach an Anchor element to a Button? How would you guys go about achieving navigating to an external URL with a Button?

I’ve attached a screenshot of the Button I want to use to navigate to the external URL, and the Anchor element that I have in place now that actually does that.

You could simply style an Anchor as a Button

No need for styling I think.

Button button = new Button("Click Me", e -> {
    UI.getCurrent().getPage().open("", "_self");

Thank you both!