Abhishek has Published 65 Articles

How to submit an HTML form using JavaScript?

Abhishek

Abhishek

Updated on 25-Nov-2022 06:57:15

13K+ Views

In this tutorial, we will learn how we can submit an HTML form using JavaScript. To submit an HTML form using JavaScript, we are calling validate() to validate data when the onsubmit event is occurring. We will discuss the direct method of submitting the HTML form as well as the ... Read More

How to subtract days from a date in JavaScript?

Abhishek

Abhishek

Updated on 25-Nov-2022 06:50:33

19K+ Views

In this tutorial, we will learn how to subtract days from a date in JavaScript. To subtract days from a JavaScript Date object, use the setDate() method. Under that, get the current days and subtract days. JavaScript date setDate() method sets the day of the month for a specified date ... Read More

How to style background image to no repeat with JavaScript DOM?

Abhishek

Abhishek

Updated on 25-Nov-2022 06:45:05

2K+ Views

In this tutorial, we will learn to style the background image to no repeat with JavaScript DOM. To style the background image to no repeat with JavaScript, use the backgroundRepeat property. It allows you to set whether the background image repeats or not on a page. The use of images ... Read More

What is NaN in JavaScript?

Abhishek

Abhishek

Updated on 08-Nov-2022 06:40:59

349 Views

In this tutorial, we will learn about NaN in JavaScript. NaN is nothing more than a property of the global object which stands for Not a Number. It is mainly used to check whether the entered value is a number or not. The NaN and Number. NaN both are same, ... Read More

What is Multiplication Operator (*) in JavaScript?

Abhishek

Abhishek

Updated on 08-Nov-2022 06:37:42

262 Views

In this tutorial, we will learn about the multiplication operator (*) in JavaScript. The multiplication operator is a binary operator which requires at least two operands to operate on. The multiplication operator simply multiplies the left operand with the right operand, or you can say that it simply increases the ... Read More

What is Multiplication Assignment Operator (*=) in JavaScript?

Abhishek

Abhishek

Updated on 08-Nov-2022 06:26:51

262 Views

In this article, we will learn about the Multiplication assignment operator (*=) in JavaScript. In general, we use a = a * b this expression to update the value of a variable with the value returned after multiplying its original value with some other value, which is easy to understand, ... Read More

What is Logical OR Operator (||) in JavaScript?

Abhishek

Abhishek

Updated on 08-Nov-2022 06:22:00

2K+ Views

In this tutorial, we will discuss the logical OR (||) operator in JavaScript. The logical OR operator is used with a set of operands, and it will return true if any of those operands is true, else it returns false when all the operands are not true. If the logical ... Read More

What is Logical AND Operator (&&) in JavaScript?

Abhishek

Abhishek

Updated on 08-Nov-2022 06:06:35

774 Views

In this article, we will discuss the logical AND (&&) operator in JavaScript. You have to make sure that the logical AND operator (&&) has nothing to do with the bitwise (&) operator, these are completely different operators in context to their working and uses. Logical AND (&&) Operator in ... Read More

What is Less than Operator (<) in JavaScript?

Abhishek

Abhishek

Updated on 08-Nov-2022 05:59:32

253 Views

The less than operator is one of the operators that come under the category of binary operators, which means it requires two operands to operate on. It will return true if the operand on the left side of the operator is less than the operand on the right side. Otherwise, ... Read More

How to find the coordinates of the cursor with JavaScript?

Abhishek

Abhishek

Updated on 31-Oct-2022 11:19:49

10K+ Views

In this tutorial, we will learn how we can find the coordinates of the mouse cursor with JavaScript. We have to find out the X and Y-coordinates or we can say that the horizontal and the vertical position of the cursor on the screen with JavaScript. JavaScript provides us with ... Read More

Advertisements