setSelectedNavigationTab()

Sets the navigation tab with a specific ID or URL. This method is only available in API version 31.0 or later.

NameTypeDescription
callbackfunctionJavaScript method that’s called upon completion of the method.
navigatorTabIdstringThe ID of the navigation tab to be selected.
urlstringThe URL of the navigation tab to be selected.

This method is asynchronous, so it returns its response in an object in a callback method. The response object contains the following field:

NameTypeDescription
successbooleantrue if setting the navigation tab with a specific ID or URL was successful, false otherwise.