Tagged: JavaScript

0

HTML data attribute

The HTML data global attribute, introduced in HTML 5, is used to embed custom data to the HTML elements.

Creating a responsive counter section 0

Creating a responsive counter section

In my previous post, I showed how to create an animated number counter. In this article, we’ll learn to create a responsive counter section on your web page.

Generating random number in JavaScript 0

Generating random number in JavaScript

In JavaScript, you can generate a random number using the random() method. This method returns a number between 0 and 1 (including 0).

Email validation using JavaScript 0

Email validation using JavaScript

Most of the HTML forms which collects the user data contains an email field. It is a good practice to properly validate those fields in the form before sending it to the server.

0

How to print a web page using JavaScript

Sometimes we would like to print some important content on the web page via a printer. We can use the print() function of window object to print the contents of a web page.

How to copy text to clipboard with JavaScript 0

How to copy text to clipboard with JavaScript

Put your programming hat on! This tutorial shows how to copy text to clipboard using javascript.

0

JavaScript variables

In programming, a variable is a value that can be changed. All variables will have a storage location and a name. The variable name is usually used to refer to the value that is stored in a variable.

Difference between JavaScript and JQuery 0

Difference between JavaScript and JQuery

The main difference between Javascript and JQuery is that Javascript is a scripting language and JQuery is a Javascript library.