RedirectToUrl
This function will redirect user to specified url and specified target (new or current window/tab). Optional confirmation prompt message can be specified.
Syntax
RedirectToUrl("url","target");
RedirectToUrl("url","target","confirmText");
Function arguments
- url– (String) url to be redirected to
- target – (String) Redirection target tab/window, this parameter can have values 'current’ or 'new’
- confirmText – (String) [Optional] Optional text for redirection prompt. If not used, user will not be prompted.
Return value
This function returns String.
This function always returns empty string
Examples
Example 1:
This will redirect user to specified case in new window/tab
RedirectToUrl("https://www.google.com","new");