Posts from JavaScript

How to get the class name of a clicked element in jQuery?

By Faruque Ahamed Mollick

Today in this post we are going to see how we can get the name of the class of an element when someone clicks on the element. In short, we are going to get the class name of an ele.... Read More

Change the browser URL on click without loading the page in JavaScript

By Faruque Ahamed Mollick

Here in this post, we are going to see how to change the URL of the browser in JavaScript without loading a new page or reloading the page again on click. Here we are going to crea.... Read More

Popup notification using JavaScript and CSS that will hide after a certain time

By Faruque Ahamed Mollick

We often find popup notification on many websites. Today we are going to make our own popup notification using CSS and JavaScript. The popup notification JavaScript function we are.... Read More

Make an HTML5 video in slow motion using DOM playbackRate property

By Faruque Ahamed Mollick

Here in this tutorial, we are going to show you how to control the speed of an HTML5 video by slow down the speed of the video. Our HTML5 video will play in slow motion after we c.... Read More

Disable HTML button after clicking on it in JavaScript

By Faruque Ahamed Mollick

In some situation, we may have to prevent a button from clicking on it on a web page. For example, on a registration form if we allow clicking multiple time before loading the othe.... Read More

Get the scroll position of a web page in the browser window using JavaScript

By Faruque Ahamed Mollick

We may be needed the scroll position of a web page in the browser window. So here in this tutorial, we are going to see how to get the scrolling position amount of a web page on th.... Read More

Run JavaScript code or call a function after n seconds

By Faruque Ahamed Mollick

In this post, we are going to run our JavaScript code or call a function after a specific time or after n seconds after the window load. Suppose we want to alert a message after n .... Read More