Posts from JavaScript

Stop form submission using JavaScript preventDefault() Event Method

By informerfrk

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. Its an image/photo gallery designed with HT.... 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 informerfrk

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 informerfrk

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 informerfrk

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 informerfrk

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