Shubham Vora has Published 962 Articles

How to perform integer division and get the remainder in JavaScript?

Shubham Vora

Shubham Vora

Updated on 14-Sep-2022 13:38:18

2K+ Views

In this tutorial, we will learn how to perform integer division and get the remainder in JavaScript. The division operator (/) returns the quotient of its operands, where the dividend is on the left, and the divisor is on the right. When another splits one operand, the remainder operator (%) ... Read More

How to load the previous URL in the history list in JavaScript?

Shubham Vora

Shubham Vora

Updated on 14-Sep-2022 13:33:47

6K+ Views

In this tutorial, we will learn to load the previous page in the history list in JavaScript. The Window object in JavaScript accesses the window in the browser. This object contains many properties and methods required to do the tasks. The Window object also retrieves the information from the browser ... Read More

How to load the next URL in the history list in JavaScript?

Shubham Vora

Shubham Vora

Updated on 14-Sep-2022 13:31:40

606 Views

In this tutorial, we will learn to load the next page in the history list in JavaScript. The Window object in JavaScript accesses the window in the browser. This object contains many properties and methods required to do the tasks. The Window object also retrieves the information from the browser ... Read More

How to get the hash part of the href attribute of an area in JavaScript?

Shubham Vora

Shubham Vora

Updated on 14-Sep-2022 13:28:28

519 Views

In this tutorial, we will learn how to get the hash part of the href attribute of an area in JavaScript. The HTML element establishes an area within an image map with predetermined clickable zones. An image map allows you to correlate geometric regions of a picture with hypertext ... Read More

How to get the value of the rel attribute of a link in JavaScript?

Shubham Vora

Shubham Vora

Updated on 14-Sep-2022 09:15:29

2K+ Views

In this tutorial, we will learn how to get the value of the rel attribute of a link in JavaScript. The rel attribute expressed the relationship between the current document or website and the linked document or website. The search engine uses this attribute to get more information about the ... Read More

How to get the value of the id attribute a link in JavaScript?

Shubham Vora

Shubham Vora

Updated on 14-Sep-2022 09:12:25

8K+ Views

In this tutorial, we will learn how to get the value of the id attribute a link in JavaScript. The id attribute stores a unique value for an HTML element. The id of an element must be unique, and no other elements should not have the same id. The id ... Read More

How to get the value of the hreflang attribute of a link in JavaScript?

Shubham Vora

Shubham Vora

Updated on 14-Sep-2022 09:09:29

638 Views

In this tutorial, we will learn how to get the value of the hreflang attribute of a link in JavaScript. The hreflang is an attribute of a link or anchor tag which specifies the language of the linked document or href attribute. It is used by search engines to understand ... Read More

How to get the value of PI in JavaScript?

Shubham Vora

Shubham Vora

Updated on 14-Sep-2022 09:02:50

2K+ Views

In this tutorial, we will learn how to get the value of PI in JavaScript. The PI is a mathematical constant that is widely used in different sections of mathematics. It is defined by the ratio of the circumference of a circle to its diameter, which is approximately 3.14159. It ... Read More

How to get the value of a number rounded to the nearest integer in JavaScript?

Shubham Vora

Shubham Vora

Updated on 14-Sep-2022 09:00:14

968 Views

In this tutorial, we will learn how to get the value of a number rounded to the nearest integer in JavaScript. The nearest integer of a number can be found in different ways in JavaScript. In this tutorial, we will see the two most popular ways of doing it− ... Read More

How to get the tangent of a number in JavaScript?

Shubham Vora

Shubham Vora

Updated on 14-Sep-2022 08:50:08

313 Views

In this tutorial, we will learn how to get the tangent of a number in JavaScript. The tangent of an angle is defined by the ratio of the length of the opposite side to the length of the adjacent side. It can also be defined as the ratio of sine ... Read More

Advertisements