How to interact and set DOM properties using WebSharper?

I often need to interact with my DOM page, how can I do this through WebSharper?

For example, when I want to redirect my page only in JavaScript, I would run:

window.location = "http://www.google.com/";

How can I access windowand install location? what would it look like in F #?
Also, how this will work with functions like IE:

window.navigate("http://www.google.com/")

Note. If there is a built-in way to redirect through WebSharper, I would like to find out, but remember that this is just an example.

+2
source share
1 answer

window.location IntelliFactory.WebSharper.Html5, API HTML5. assign replace:

Window.Self.Location.Assign "http://www.google.com/"

- .

JavaScript , WebSharper:

[<Inline "window.navigate($uri)">]
let ieNavigate uri = X<unit>
+2

All Articles