Over a million developers have joined DZone.

Set Cursor To Hourglass

·
// Sets Mouse Cursor to Hourglass using Javascript


//Set cursor to hourglass
document.body.style.cursor = "wait";
//Turn hourglass off
document.body.style.cursor = "default";
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}