How to trigger live navigation from JS?

Does the Phoenix.LiveView.JS.navigate/1 do what you need? Phoenix.LiveView.JS — Phoenix LiveView v1.2.5

You can bind those to the phx-* event handlers:

<input phx-keydown={JS.navigate(to: "/")}>