Visual InterDev
Navigates the browser to a specific URL while persisting state.
Syntax
object.navigateURL(strURL)
Parameters
object
A PageObject script object.
strURL
The URL to navigate to.
Remarks
If the navigateURL method is called from client script, the form is posted to the server and a redirect occurs to the target URL. If the method is called in server script it results in a browser redirect.
Using this method is preferable to placing a URL directly in a link or using window.location.href
because it persists state. Use this method when the Session or Application scope of a page needs to be updated before navigating to another page.
Note This method is available only on the local page, not referenced pages. For example, on a page named Page1 you can call thisPage.navigateURL
or Page1.navigateURL
but not Page2.navigateURL
.