Posts from JavaScript

How To Print Specific Part or Div of Webpage Using Javascript

By Saruque Ahamed Mollick

In this tutorial, I will show you how to Print Specific Part Of Webpage in Javascript Here print means what we do with ctrl + pĀ on our browser. I am not going to print some line o.... Read More

Check if String Contains a Specific Word in JavaScript

By Faruque Ahamed Mollick

Today, in this tutorial I am going to show you how to check if a stringĀ contains a specific word or not. Here I am going to show you the simple and easy JavaScript code snippets t.... Read More

Move an Element with Arrow Keys in JavaScript

By Faruque Ahamed Mollick

I am again with a JavaScript tutorial that can make newbies feel great. In this tutorial, I am going to show you how to consistently move an element with arrow keys. I already show.... Read More

Move an Element to Mouse Position in JavaScript

By Faruque Ahamed Mollick

Are you ready to play with JavaScript? Because this tutorial is going to be an interesting one who love playing with JavaScript DOM. In this tutorial, I am going to let you know ho.... Read More

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