Skip to content

Tag Archives: JavaScript-Misc

The touchstart event occurs when the user touches an element. But a click event is fired when the user clicks an element. Usually, both the touchstart… Read More
Earlier, the websites used to be static. However, the introduction of vanilla JavaScript revolutionized the way websites used to look and function. Vanilla JS helped… Read More
The browser on which the current page is opening can be checked using JavaScript. The userAgent property of the navigator object is used to return… Read More
The arguments object is an array-like object that represents the arguments passed in when invoking a function. This array-like object does not have the array… Read More
Method 1: Using the offsetHeight property: The offsetHeight property of an element is a read-only property and used to return the height of an element… Read More
HTML 5 is the latest standard of HTML that includes many new changes and features. HTML 5 support can be detected by using three approaches:Method… Read More
Method 1: Create a canvas element and use getContext() method: The getContext() method of a canvas object is used to return the drawing context of… Read More
Most of the time, we use static import to include all the exports in our script at the beginning. The import happens every time the… Read More
Create a textarea and the task is to automatically resize it when we type or paste the content in it. It can be achieved by… Read More
Given an URL and the task is to parse that URL and retrieve all the related data using JavaScript. Example: URL: When we parse… Read More
A boolean value can be toggled in JavaScript by using two approaches which are discussed below: Method 1: Using the logical NOT operator: The logical… Read More
The task is to convert a JSON result to JavaScript Date with the help of JavaScript. There are few two methods which are discussed below:… Read More
In Bootstrap 4, Javascript or jQuery events are used to add active class on click event in custom list group. Syntax: $(document).ready(function() { $('selector').click(function() {… Read More
The resize() method is an inbuilt method in jQuery which is used when the browser window changes its size. The resize() method triggers the resize… Read More
Given an HTML document containing an <iframe> element and the task is to change the height of the <iframe> element to 100% with the help… Read More

Start Your Coding Journey Now!