Shubham Vora has Published 962 Articles

How to set whether the text of an element can be selected or not with JavaScript?

Shubham Vora

Shubham Vora

Updated on 12-Oct-2022 11:23:04

152 Views

In this tutorial, we will learn to set whether the text of an element can be selected or not with JavaScript. Use the userSelect property in JavaScript to enable or disable a text selection. For Firefox, use the MozUserSelect property and set it to none, to disable the selection. ... Read More

How to set whether an element should be visible in JavaScript?

Shubham Vora

Shubham Vora

Updated on 12-Oct-2022 11:18:51

2K+ Views

In this tutorial, we shall learn to set whether an element should be visible in JavaScript. Use the visibility property to hide or show an element. The visibility property takes different values such as visible, hidden, collapse, etc. To show an element, we set the visibility property to "visible" whereas ... Read More

How to set the width of the right border with JavaScript?

Shubham Vora

Shubham Vora

Updated on 12-Oct-2022 11:13:56

159 Views

This tutorial will teach us to set the width of the right border with JavaScript. To set the width of the right border, use the borderRightWidth property. Set the width of the right border using this property. We can also apply the borderWidth to set the right border. Borders are ... Read More

How to set the width of an element in JavaScript?

Shubham Vora

Shubham Vora

Updated on 12-Oct-2022 11:08:28

9K+ Views

In this tutorial, we will learn to set the width of an element in JavaScript. We can use the "width" property in JavaScript to set the width of an element. The web page should be responsive on every screen. Each element on a web page should have its area covered. ... Read More

How to set the type of cursor to display for the mouse pointer with JavaScript?

Shubham Vora

Shubham Vora

Updated on 12-Oct-2022 11:04:31

2K+ Views

In this tutorial, we will learn to set the type of cursor for the mouse pointer with JavaScript. To set the type of cursor, use the cursor property in JavaScript. It allows you to change the cursor on the button click. We can even change the type of cursor by ... Read More

How to set the style of the top border with JavaScript?

Shubham Vora

Shubham Vora

Updated on 12-Oct-2022 10:59:48

222 Views

In this tutorial, we shall learn to set the style of the top border with JavaScript. To set the style of the top border in JavaScript, use the borderTopStyle property. Set the style of the top border using this property. Let us discuss the property available in JavaScript to achieve ... Read More

How to set the style of the right border with JavaScript?

Shubham Vora

Shubham Vora

Updated on 12-Oct-2022 10:55:35

135 Views

In this tutorial, we will learn to set a style of the right border with JavaScript. To set the style of the right border in JavaScript, use the borderRightStyle property. Set the style of the right border using this property. We can apply borders to an element from any side ... Read More

How to set the shape of the border of the top-left corner with JavaScript?

Shubham Vora

Shubham Vora

Updated on 12-Oct-2022 10:47:31

249 Views

In this tutorial, we will learn to set the radius of the top-left corner of the border using JavaScript DOM. To set the shape of the border of the top-left corner in JavaScript, use the borderTopLeftRadius property. Set the border radius using this property. We apply borders on a webpage ... Read More

How to set the stack order of a positioned element in JavaScript?

Shubham Vora

Shubham Vora

Updated on 12-Oct-2022 10:41:21

279 Views

In this tutorial, we shall learn to set the stack order of a positioned element in JavaScript. To set the stack order, we can use the style zIndex property. Let's first check what the stack order is. The stack order says the order in which the DOM elements are displayed. ... Read More

How to increment one or more counters with JavaScript?

Shubham Vora

Shubham Vora

Updated on 12-Oct-2022 09:22:28

12K+ Views

In this tutorial, we will learn how to increment one or more counters with JavaScript. In JavaScript, we can increment one or more counters in different approaches, and in this tutorial, we will see some of the approaches for doing this − Using loop iteration Using events Using setInterval() ... Read More

Advertisements