Lokesh Yadav has Published 52 Articles

How to get the cookies associated with a document in JavaScript?

Lokesh Yadav

Lokesh Yadav

Updated on 08-Dec-2022 08:00:28

568 Views

In this article we are going to learn how to get the cookies associated with a document in JavaScript. The cookies property present in the Document interface is used to return the cookies associated with a Document in JavaScript. The Cookies are small strings of data that is present in ... Read More

How to display the domain of the server that loaded a document in JavaScript?

Lokesh Yadav

Lokesh Yadav

Updated on 08-Dec-2022 07:58:49

368 Views

In this following article we are going to learn how to display the domain of the server that loaded a document in JavaScript. To display the domain of the server, we use domain property of the document interface, which returns the domain part of the current document. The domain property ... Read More

How to find the href attribute of a link in a document in JavaScript?

Lokesh Yadav

Lokesh Yadav

Updated on 08-Dec-2022 07:56:56

3K+ Views

In this following article we are going to learn how to find the href attribute of a link in a document in JavaScript. The DOM property in the JavaScript provides many properties like , , , , , . There are two ways we can represent the links in HTML ... Read More

How to find the number of links in a document in JavaScript?

Lokesh Yadav

Lokesh Yadav

Updated on 08-Dec-2022 07:55:38

866 Views

In this article we are going to discuss how to find the number of links in a document in JavaScript. The DOM property in the JavaScript provides many properties like , , , , , . There are two ways through which we can represent the links in HTML DOM. ... Read More

How to get a particular anchor in a document in JavaScript?

Lokesh Yadav

Lokesh Yadav

Updated on 08-Dec-2022 07:54:19

1K+ Views

In this article we will learn how to get a particular anchor in a document in JavaScript. The Javascript anchor tags follow an array-like structure. When we try to display a particular anchor tag we have to use ,document.anchors.innerHTML method. This method works the same as array methods which are ... Read More

How to find a number of anchors in a document in JavaScript?

Lokesh Yadav

Lokesh Yadav

Updated on 08-Dec-2022 07:52:56

791 Views

This article discusses about how to find the number of anchors in a document in JavaScript. The anchor tag is a part of HTML DOM elements. The anchor property is a read only property that returns a list of anchor tags inside a document. The anchor object is represented as ... Read More

How to get the title and full URL of a document in JavaScript?

Lokesh Yadav

Lokesh Yadav

Updated on 08-Dec-2022 07:50:08

1K+ Views

In this article we will learn how to get the title and full URL of a document in JavaScript with the help of examples. The Javascript HTML DOM has provided some basic methods to access and manipulate the HTML data. To find the title and URL of a document, JavaScript ... Read More

How to know the browser language and browser platform in JavaScript?

Lokesh Yadav

Lokesh Yadav

Updated on 08-Dec-2022 07:48:23

556 Views

In this article we are going to discuss how to know the browser language and browser platform with the help of examples in JavaScript To know the various properties of the browser, the JavaScript provides Navigator object. The Navigator object has several properties, which include - connection, credentials, cookies, geolocation, ... Read More

What is the use of Higher-order functions in JavaScript?

Lokesh Yadav

Lokesh Yadav

Updated on 08-Dec-2022 07:47:19

942 Views

In this article we are going to discuss the use of Higher-order functions in JavaScript. A higher order function is simply, a function that accepts other functions as parameters and/or returns a function. To know about Higher-order functions, we should learn about call back functions. A call back function is ... Read More

How do you test if a value is equal to NaN in Javascript?

Lokesh Yadav

Lokesh Yadav

Updated on 08-Dec-2022 07:44:25

239 Views

This article discusses about how do you test if a value is equal to NaN in JavaScript. In JavaScript, NaN is a method from Number class. NaN implies Not-a-Number. It is of Boolean type. It returns true when the value is “Not-a-number”. The NaN method is used in the situations. ... Read More

Advertisements