Posts from JavaScript

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

Show or hide input field based on checkbox using jQuery

By informerfrk

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

Close current tab in browser window using JavaScript

By informerfrk

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

Disable right click, copy, cut on web page using jQuery

Disable right click, copy, cut on web page using jQuery

By informerfrk | October 13, 2017

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