The Backbone.JS Router Navigate() method updates the URL in the applications.
Syntax:
Backbone.Router.Navigate (fragment, options)
Parameters:
fragment: This parameter is used to specify the name of the parameter to display the URL.
options: This parameter is used to specify the options like trigger, update and replace.
Example:
Example
Output:
● Route 1 ● Route 2 ● Route 3 ● Route 4 ● Route 5
Explanation:
In the above example the Navigate() method updates the URL in the applications.