Skip to content

Tag Archives: JavaScript-Misc

Method 1: Replacing the current state with replaceState() Method: The history interface of the browser manages the browser session history. It includes the page visited… Read More
Given an HTML document containing <textarea> element and the task is to set the position of scrollbar to bottom of <textarea> with the help of… Read More
Method 1: Using the Node.contains() method The Node.contains() method is used to check if a given node is the descendant of another node at any… Read More
The text area tag defines a multi-line text input control. The size of a text area can be specified by the cols and rows attributes.… Read More
This works in the same way as redirecting to any URL in javascript. Approach 1: To redirect to a relative URL in JavaScript you can… Read More
Given an HTML element containing the <textarea> element and the task is to disable scrolling through arrow keys with the help of JavaScript. Approach 1:… Read More
The ResizeObserver Interface is used to provide a mechanism to monitor the changes to the dimensions of an element. The notifications of the changes are… Read More
In this article, we will know how to get the client’s IP address in Javascript. An IP address is a combination of numbers that uniquely… Read More
JavaScript is a multi-paradigm prototype-based language, which uses JavaScript Engine such as Chrome’s V8 engine Firefox SpiderMonkey engine and etc. They convert the high level… Read More
The Javascript arrays are heterogeneous. The structure of the array is the same which is enclosed between two square brackets [ ], and string should… Read More
In this article, we will discuss how to write a javascript function which will prevent the user to navigate back to the last or previous… Read More
Multidimensional arrays are not directly provided in JavaScript. If we want to use anything which acts as a multidimensional array then we need to create… Read More
The placeholder attribute does not work with the input type Date, so place any value as a placeholder in the input type Date. You can… Read More
The task is to check whether number evaluates to infinity or not with the help of JavaScript. Here are few techniques discussed. Approach 1: Checking… Read More
Method 1: Using Intl.NumberFormat() The Intl.NumberFormat() object is used to represent numbers in a language-sensitive formatting. It can be used to represent currency or percentages… Read More

Start Your Coding Journey Now!