Skip to Content
NFSFU234FormValidation v3 is here — file upload validation, config-driven rules, and more.
v3 (current)redirect

redirect

Redirects the browser to a URL, optionally after a delay. Returns: void

ParameterTypeRequiredDefaultDescription
url`undefined \null \string \false`
delaynumberoptional0Delay in milliseconds before redirecting. Defaults to 0.
Usage
Example: Redirect to a URL
const url = "https://www.example.com"; nfsfu234FormValidation.redirect(url); // Redirects immediately to the specified URL const delayedUrl = "https://www.example.com"; nfsfu234FormValidation.redirect(delayedUrl, 3000); // Redirects to the specified URL after 3 seconds
Last updated on