Is it possible to open a web page by an URL?


#1

I am trying to open a web page when clicking a link with a hashlink app. Is that possible? If yes, how?

Thank you!


#2

Did you try h2d.HtmlText?

Edit: You still can do Sys.command( 'start $yourUrl' ) on Windows. I have no idea about other OS, and I’m not sure how reliable this is.


#3

https://github.com/HeapsIO/heaps/pull/756 this merge request added a hxd.System.openURL(url), which basically runs the command listed above, except it should work on windows, linux, and mac.