Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

wait-cursor
Type: boolean
Set this attribute to true to have the cursor switch to a waiting cursor while the mouse is hovering over the element. Usually, you would only use this on the window element or other top-level elements. In order to revert to the normal cursor state call the method removeAttribute("wait-cursor") when the process effectively has ended otherwise the wait cursor might never disappear.

See also

This seems to work instead of trying to set a wait-cursor attribute:

window.setCursor('wait') and window.setCursor('auto')

Document Tags and Contributors

 Contributors to this page: Sheppy, ethertank, Allasso, trevorh, LeslieM, LJR, Marsf, BenoitL, Okome, Dria
 Last updated by: Sheppy,