Posts from JavaScript

How To Get Height and Width of HTML Element in JavaScript

By Saruque Ahamed Mollick

Hello, here I am going to show you how to get height and width of HTML element in JavaScript in many ways. All of us are familiar with what is a height and what is a width. So in t.... Read More

How to Hide Cursor In JavaScript or CSS very Easily

By Saruque Ahamed Mollick

In this post, I am going to show you an easy and effective way to hide cursor in JavaScript as well as in CSS. This lesson will help you to understand the following things: How to .... Read More

Change YouTube embed iframe video in JavaScript

By Faruque Ahamed Mollick

Lots of us know that anyone can get the embed code from YouTube for a video. This code is nothing but simple HTML iframe tag having the YouTube video path in the src attribute. All.... Read More

How to Create A Countdown Timer with Progress Bar in JavaScript

By Saruque Ahamed Mollick

In this tutorial, I am going to show you how to create a countdown in JavaScript with progress bar. Here we gonna create a Progress bar with a defined max value and starting value .... Read More

Play and pause HTML5 video by pressing space key in JavaScript

By Faruque Ahamed Mollick

A lot of online video players including YouTube have the video play and pause functionality by pressing the space key from the keyboard. We all are aware of this. Now, in this post.... Read More

Forward and backward HTML5 video player with left and right arrow key in JavaScript

By Faruque Ahamed Mollick

You probably notice that you can backward and forward video on YouTube while watching it. You can do it just by pressing left and right arrow keys from your keyboard. In this post,.... Read More

How to Play Audio After Few Seconds or Delay in JavaScript

By Saruque Ahamed Mollick

In this tutorial, I will show you how easily you can play audio after few seconds or some time delay easily using JavaScript. Here we gonna create an HTML file with an audio tag an.... Read More

Get child element using JavaScript children property

By Faruque Ahamed Mollick

In this post, I am going to tell you how to get a child element from its parent using JavaScript. HTML DOM hasĀ children property that can return the collection of child elements. .... Read More