In this video tutorial, you will learn how to open a URL on button click in javascript. Generally, we always use an anchor tag for external or internal links. Anchor tag has href attribute where we specify the page we want to open when somebody clicks on that element. As you know there is no
In this tutorial, you will learn how to add tooltip in javascript. The tooltip is used to display the shortest possible details about an element in the form of a text box. The tooltip generally appears whenever a user hovers over an element using the mouse pointer. Tooltip is extremely useful when it comes to
In this tutorial, you will learn how to move an object using arrow keys in javascript. By object, we simply mean an HTML element and we are going to move a div element using arrow keys present in the keyboard. Each event handler function receives an event object as the first parameter. This event object
In this tutorial, you will learn how to copy text to clipboard in javascript. You must have seen websites where they put a copy icon or copy button right next to an input field and as a result, it helps users to copy the content of that input field easily. There are multiple ways to