Print

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

 

Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?