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");

 

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.