Posts from JavaScript

Get Current URL Path of Web Page in JavaScript

By Faruque Ahamed Mollick

I am going to show you how to get the current URL of the web page with the help of JavaScript on the client side. We can use the JavaScript window.location object to get the curren.... Read More

How To Add Browser Notification Using JavaScript

By Saruque Ahamed Mollick

There is a lot of methods to enable a popup notification for a certain event on the browser. But all of that notifications will be in your webpage. The user will see the notificati.... Read More

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 notifications on many websites or web-based front-end application that hides after a certain amount of time automatically. Today we are going to make our own po.... Read More

Make an HTML5 video in slow motion using DOM playbackRate property

By Faruque Ahamed Mollick

Here in this tutorial, you are going to learn how to control the playback speed of an HTML5 video to give it a slow motion effect. Let’s first write our HTML code: <video .... Read More

Disable HTML button after the first click on it in JavaScript

By Faruque Ahamed Mollick

There are situations when you need to prevent a button from clicking on it on a web page after the first click. For example, on a registration form if we allow clicking multiple ti.... 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

Related Posts