Simcy Creative
  • What is Simcify
  • Requirements
  • Getting Started
  • Javascript Functions
    • Simple js Functions
    • Interaction Functions
      • Loader
      • Notifications
      • Credit Card Form
    • Helper Functions
      • Random
      • Cookies
      • Send to server(Ajax)
      • Server Responses
    • HTML helpers
      • Form Processing
      • Send onClick
      • Send onChange
      • Fetch & Display
      • Dropify
      • Switchery
      • Crop Image Input
      • Image Preview
  • PHP Functions
    • Introduction
    • Setup
    • Authentication
      • Login
      • Register
      • Forgot Password
      • Reset Password
    • Configuration
    • Email & SMS
      • SMS
        • Africa's Talking
        • Twilio
      • Email
    • Files Manager
      • Upload
      • Delete
Powered by GitBook
On this page
  • Page Reload
  • Redirecting
  • Open New Tab
  • Console Log
  • Console Error
  1. Javascript Functions

Simple js Functions

Most js functions are short but we have made them even shorter.

Page Reload

Reloading a page is as simple as;

reload();

Redirecting

To redirect a user to another page on the same tab;

redirect(url);

Arguments

Parameter

Required

Type

Description

url

Yes

string

The URL to redirect to.

Open New Tab

To open a new tab;

open(url);

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;

log(data);

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;

error(data);

Arguments

Parameter

Required

Type

Description

data

Yes

Any data Type

The error to print on console.

PreviousGetting StartedNextInteraction Functions

Last updated 6 years ago