---
title: "How to set the cursor to wait in JavaScript?"  
description: "How to set the cursor to wait in JavaScript?"  
author: "AVADHESH PATEL"  
published: 2012-08-01  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/1496/how-to-set-the-cursor-to-wait-in-javascript  
category: "javascript"  
tags: ["javascript"]  
reading_time: 1 minute  

---

# How to set the cursor to wait in JavaScript?

The cursor can set to wait in JavaScript by using the property ‘cursor’ property. The following example illustrates the usage.

window.document.body.style.cursor = "wait";

## Answers

### Answer by AVADHESH PATEL

The cursor can set to wait in JavaScript by using the property ‘cursor’ property. The following example illustrates the usage.

window.document.body.style.cursor = "wait";


---

Original Source: https://www.mindstick.com/interview/1496/how-to-set-the-cursor-to-wait-in-javascript

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
