Page Redirect after specified time with JavaScript

In JavaScript, setTimeout() and setInterval() methods are used to add delay before executing some action.

The setTimeout() method only executes the statement once but the setInterval() method executes repeatedly until the interval is not been cleared.

In this tutorial, I show how you can use the setTimeout() method to set some delay before redirecting to another page.

Page Redirect after specified time with JavaScript

Read more

Capture Signature in the webpage with jQuery plugins

In this tutorial, I show you some jQuery plugins by using them you can capture the user signature on your web page.

I discuss the following plugins with an example –

  • jSignature
  • Signature Pad
  • jQuery UI Signature

They add a container on the web page where the user can draw its signature using the mouse pointer.

Capture Signature in the webpage with jQuery plugins

Read more

How to Convert an Array To a String in JavaScript

In JavaScript, arrays are an effective data structure that you can use to store and manage collections of values. Nevertheless, there are some circumstances in which you might need to convert an array into a string, such as when you want to display the contents of the array on a web page or send the array as a parameter in a URL.

Mainly it is done by traversing on the Array and concat value to a variable with a separator for string conversion.

Fortunately, there are several built-in methods in JavaScript that can be used to convert an array to a string.

How to Convert an Array To a String in JavaScript

Read more

How to copying content to Clipboard with JavaScript

Nowadays all modern browsers allow copying content to the clipboard with JavaScript.

But before this, it is not supported in most browsers because of security reasons. You need to ask the user to press CTRL+C to copy the currently selected text.

In this tutorial, I show how you can copy the content to the clipboard with or without plugins.

How to copying content to Clipboard with JavaScript

Read more