Posts from JavaScript

How to Refresh a page using JavaScript

By Faruque Ahamed Mollick

I am again with a new JavaScript article for browsers. In this article, I am going to let you know how you can refresh the current web page with JavaScript code. So let’s con.... Read More

Detect Browser in JavaScript with Platform.js

By Faruque Ahamed Mollick

In this article, I am going to tell you one of the easiest ways of detecting the browser in JavaScript. To do this task, we are going to use the Platform.js JavaScript library. Usi.... Read More

Define a Function in JavaScript

By Faruque Ahamed Mollick

Functions in JavaScript are custom code written by programmers that are reusable and can prevent you from writing the same code again and again. All it needs is just call the funct.... Read More

Count the number of words in a string in JavaScript

By Faruque Ahamed Mollick

It is quite an easy task to count the number of words in a given string with JavaScript. In this article, I will show you how to perform this task. To count words from the string, .... Read More

Change Background Color on Mouse Hover in JavaScript

By Faruque Ahamed Mollick

In this JavaScript HTML DOM tutorial, I am going to show you how we can change the background color of an element. Before we get started, let’s create an HTML element with an.... Read More

Get the ratio of two numbers in JavaScript

By Faruque Ahamed Mollick

I am again here with another JavaScript solution. In this article, you are going to see how to get the ratio between two numbers in JavaScript. Well, when we all were in high schoo.... Read More

Check if div element with class name exists in JavaScript

By Faruque Ahamed Mollick

In this tutorial, we are going to check if div element with a specific class name exists or not in JavaScript. The JavaScript program we are going to write for the browser will abl.... Read More

How to shuffle characters of a string in JavaScript

By Keshav J

In this tute, we will discuss how to shuffle characters of a string in JavaScript. Before getting into the topic, let’s see what is a string in JavaScript. The JavaScript string .... Read More