Redirect(url) Last updated: 21. Dec 2022

Redirects browser to specified url.

Parameters

Name Type Description
url string Url to redirect browser to.

Returns

HTTP redirect header 301 or 302.

Example

Code example (#JS)

#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.
#redirect("https://docly.net")#

Output

The #JS code above produces the output shown below:
Redirects user to docly.net