Posts from JavaScript

How to generate a random password in JavaScript?

By Faruque Ahamed Mollick

In many times it is needed to generate a random password for a website. For example, on registration system of a website a password can be generated for the account by clicking a b.... Read More

Stop form submission using JavaScript preventDefault() Event Method

By Faruque Ahamed Mollick

In projects, it is often necessary to prevent form submission after clicking the submit button of an HTML form. So in this tutorial, we are going to see how to prevent or stop an H.... Read More

3D Photo/Image Gallery (on space) Using HTML5 CSS JS

By Saruque Ahamed Mollick

Nowadays everybody wants something cool and different on their website from other websites. So here you will find something really cool. Today I am gonna share 3d image gallery. It.... Read More

Guess The Number Game Using JavaScript

By Saruque Ahamed Mollick

In this post, I am going to share a source code of “Guess The Number” game using JavaScript At first, let’s see what kind of game is this and how does it work? Af.... Read More

Validating phone numbers in JavaScript

By Faruque Ahamed Mollick

Here in this post, we are going to see how to validate phone number from a text type HTML input field. Phone number validation is often used in web. So it will be good if we see ho.... Read More

Immediately submit upload form after selecting file

By Faruque Ahamed Mollick

In this post, we are going to see how to submit an HTML form with input type file immediately after one select a file. That means when one selects a file it should submit instantly.... Read More

Detect arrow key press in JavaScript

By Faruque Ahamed Mollick

In this post, we are going to see how to detect if arrow key pressed from the keyboard using JavaScript with example code snippets. Before we go forward we should get some informat.... Read More

Copy text to clipboard on click using JavaScript

By Faruque Ahamed Mollick

In this post, I am going to tell you how to copy text to the clipboard by clicking a button so that the text can use the text anywhere just by pasting it there. Most probably, you .... Read More

Related Posts