HTML | DOM Style cursor Property Last Updated : 08 Aug, 2022 Comments Improve Suggest changes 2 Likes Like Report The cursor property is used in HTML DOM to set or return the type of cursor to display for the mouse pointer. Syntax: Return the cursor property:object.style.cursorSet the cursor property:object.style.cursor=value Property Values: alias: This property is used to display the cursor's indication of something is to be created.all-scroll: In this property, the cursor indicates scrolling.auto: This is the default property where the browser sets a cursor.cell: In this property, the cursor indicates a cell or set of cells are selected.context-menu: In this property, the cursor indicates that a context menu is available.col-resize: In this property, the cursor indicates that the column can be resized horizontally.copy: In this property, the cursor indicates something is to be copied.crosshair: In this property, the cursor renders as a crosshair.default: The default cursor.e-resize: In this property, the cursor indicates an edge of a box is to be moved to the right.ew-resize: In this property, the cursor indicates a bidirectional resize cursor.help: In this property, the cursor indicates that help is available.move: In this property, the cursor indicates something is to be movedn-resize: In this property, the cursor indicates an edge of a box is to be moved up.ne-resize: In this property, the cursor indicates an edge of a box is to be moved up and right.nesw-resize: This property indicates a bidirectional resize cursor.ns-resize: This property indicates a bidirectional resize cursor.nw-resize: In this property, the cursor indicates an edge of a box is to be moved up and left.nwse-resize: This property indicates a bidirectional resize cursor.no-drop: In this property, the cursor indicates that the dragged item cannot be dropped here.none: This property indicates no cursor is rendered for the element.not-allowed: In this property, the cursor indicates that the requested action will not be executed.pointer: In this property, the cursor is a pointer and indicates linkprogress: In this property, the cursor indicates that the program is busy.row-resize: In this property, the cursor indicates that the row can be resized vertically.s-resize: In this property, the cursor indicates an edge of a box is to be moved down.se-resize: In this property, the cursor indicates an edge of a box is to be moved down and right.sw-resize: In this property, the cursor indicates an edge of a box is to be moved down and left.text: In this property, the cursor indicates text that may be selected.URL: In this property a comma-separated list of URLs to custom cursors and a generic cursor at the end of the list.vertical-text: In this property, the cursor indicates vertical-text that may be selected.w-resize: In this property, the cursor indicates an edge of a box is to be moved left.wait: In this property, the cursor indicates that the program is busy.zoom-in: In this property, the cursor indicates that something can be zoomed in.zoom-out: In this property, the cursor indicates that something can be zoomed out.initial: This property is used to set to its default value.inherit: Inherits from its parent element. Return Values: It returns a String, value which representing the displayed mouse cursor when the mouse pointer is over an element Example: html <!DOCTYPE html> <html> <head> <title> HTML | DOM Style cursor Property </title> <style> .wait { cursor: wait; } h1 { color: green; } </style> </head> <body> <center> <h1>GeeksforGeeks</h1> <p id="myP"> Mouse over this text before and after you have clicked the button below! </p> <button type="button" onclick="myFunction()"> Change cursor </button> <script> function myFunction() { document.getElementById( "myP").style.cursor = "pointer"; } </script> </center> </body> </html> Output: Supported Browsers: The browser supported by HTML | DOM Style cursor Property are listed below: Google Chrome 1 and aboveEdge 12 and aboveInternet Explorer 4 and aboveMozilla Firefox 1 and aboveOpera 7 and aboveSafari 1.2 and above Create Quiz Comment V Vijay Sirra Follow 2 Improve V Vijay Sirra Follow 2 Improve Article Tags : Web Technologies HTML HTML-DOM Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables10 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms5 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List15+ min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like