Javatpoint Logo
Javatpoint Logo

Backbone.js router.navigate()

The Backbone.js navigate method is used to update and save the application as URL. It can also be done by calling the route function.

Syntax:

Parameter explanation:

fragment: It specifies the name of the parameter in which URL will be displayed.

options: It specifies the options such as trigger and replace to call the route function and to update the URL.

Let's take an example.

See this example:

Test it Now

Output:

Save the above code in navigate.html file and open this file in a new browser.

BackboneJS navigate Model




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA