Posts from JavaScript

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

Run JavaScript code or call a function after n seconds

By Faruque Ahamed Mollick

In this short tutorial, we are going to show you how to run our JavaScript code or call a function after a specific time or after n seconds after the window load. Suppose we want t.... Read More

How to check the internet connection status in JavaScript

By Faruque Ahamed Mollick

In this tutorial, we are going to see how to check the internet connection on our browser using JavaScript so that it is possible to see if online or offline. Checking the internet.... Read More

Generate random hex CSS color code in JavaScript

By Faruque Ahamed Mollick

We can set the color of text or background color of any element by set the hex color through CSS. Now in this post, we are going to generate the random CSS hex color code using Jav.... Read More

Delay in loading external JavaScript file

By Faruque Ahamed Mollick

Previously we have learned how to delay in executing JavaScript code from this post – How to delay in loading JavaScript code?. We used setTimeout() JavaScript window metho.... Read More

Related Posts