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
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
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
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
In many times it is required to show an HTML input field to the user depending upon the checkbox. In most of the cases when the user checks an input checkbox field, a new input fie.... Read More
Today in this post, we are going to see how to close a current tab in a browser window using JavaScript. Suppose we have a web page that is opened on a tab of a browser window. Now.... Read More
On some website, you may notice that you can’t use right click, copy or cut content from the web page. Actually, on that websites, mouse right click and copy is disabled using JavaScript. Here in this post, at first we are going to see how to disable right click on a web page. After that, we […] Read More
In this tutorial, we are going to make a simple JavaScript form validator which will be used to prevent form submission if any one of the form input fields is empty. The HTML Befor.... Read More