Simple js Functions
Most js functions are short but we have made them even shorter.
Page Reload
Reloading a page is as simple as;
Redirecting
To redirect a user to another page on the same tab;
Arguments
Parameter
Required
Type
Description
url
Yes
string
The URL to redirect to.
Open New Tab
To open a new tab;
Arguments
Parameter
Required
Type
Description
url
Yes
string
The URL to open on new tab.
Console Log
To print on the console log, simply use the function below;
Arguments
Parameter
Required
Type
Description
data
Yes
Any Data Type
The data to print on console.
Console Error
To print an error on console, use the function below;
Arguments
Parameter
Required
Type
Description
data
Yes
Any data Type
The error to print on console.
Last updated