open a web page

I am new to Xojo so I am short on knowledge. Question: I do not want to open a web page inn the HTML viewer but would like to go to a web page using the URL in a button. How do I do that?

System.GotoURL "https://www.apple.com"

Thanks, Emily, for responding to my ignorance.

Much appreciated

It works on desktop, but I get errors when I try to use it on a webpage produced in Xojo?

Usually the error should give you a hint.
The web documentation should have something about GotoUrl.
You may need Session.GotoUrl instead of System.

Thanks Alberto. I will try it out.