5

I'm new to Uno Platform and WebAsssembly in general, but think it has great potential!

Is there a way to read from and interact with the browser's address bar from an Uno Platform app running in WebAssembly (similar to HTML5's history object?). The examples I've seen do not do this.

FOR EXAMPLE: the user types in: http://myUnoApp.com/home Can I read the /home part? Or if he goes to the "Home" page of my app, can I set the browser's address bar to http://myUnoApp.com/home? And can I read the history so if he presses the back button of the browser, my app knows where to go?

101chris
  • 867
  • 2
  • 10
  • 17

1 Answers1

3

You can invoke JavaScript:

var url = WebAssemblyRuntime.InvokeJS("window.location.href");
bricelam
  • 28,825
  • 9
  • 92
  • 117