Advertisement
728x90
The cursor can be set to wait in JavaScript by using the property cursor. Let's perform this behavior on page load using the below function.
javascript
1function myFunction() {
2 window.document.body.style.cursor = "wait";
3 }and this function invoked on page load
html
1<body onload="myFunction()"></body>Advertisement
Responsive Ad
🎯 Practice NowRelated Challenge
JavaScript Coding Exercise 45
Test your knowledge with this interactive coding challenge.
Start CodingAdvertisement
728x90
301of476