Skip to content

Tag Archives: JavaScript-Misc

Ever tried to submit a form, by using a JavaScript? But when you tried to submit the form by using JavaScript, you might be getting… Read More
In JavaScript “0” is equal to false because “0” is of type string but when it tested for equality the automatic type conversion of JavaScript… Read More
Given an image and the task is to get the width and height of the image using JavaScript. The width and height property is used… Read More
In this article, we will convert a string into a float in Javascript. We can convert a string into a float in JavaScript by using… Read More
To get the subset of properties of a JavaScript Object, we make use of destructuring and Property Shorthand. The destructuring assignment syntax is a JavaScript… Read More
To measure the width of a div element we will utilize the offsetWidth property of JavaScript. This property of JavaScript returns an integer representing the… Read More
The task is to pass a string as a parameter on onClick function using javascript, we’re going to discuss few techniques. Example 1: This example… Read More
Onchange: Onchange executes a JavaScript when a user changes the state of a select element. This attribute occurs only when the element becomes unfocused. Syntax:… Read More
This article will tell us how the bootstrap executes when the .modal (modal window) gets closed. At some point of time, the modal window –… Read More
Given an HTML element and the task is to determine whether its content is overflow or not using JavaScript. Approach: Select the element to check… Read More
To get file extensions using JavaScript, there are so many ways. The most useful ones are: split() and pop() method substring() and lastIndexOf() method match()… Read More
Suppose that a user creates a webpage. Now he has a webpage, which contains an IFrame and a Button. Once the user presses the button,… Read More
The iframe HTML element is often used to insert contents from another source. Contents which needs resizing is done indirectly using a div tag. The… Read More
Web workers are giving us the possibility to write multi-threaded Javascript, which does not block the DOM. Even the Asynchronous operations block the DOM to… Read More
The protocol, domain, and port of the current page can be found by two methods: Method 1: Using location.protocol, location.hostname, location.port methods: The location interface… Read More

Start Your Coding Journey Now!