Hourglass Icon

Hi all,

Iam working in JSP and JS and I have a requirement such that,once I click on a Button, a page from a server appears.The page takes longer time to load.To show that the HTML onclick event is executed,I need to show a Hourglass or progress cursor till the page loads, and set the cursor to default once it has finished loading (after the intended page is being displayed) .I know that this can be done using document.body.style.cursor =“wait”.But I have no idea,how to set it back to default.Can please someone enlighten me with your thoughts,as to how this can be done?

document.body.style.cursor = "";

Here you can find the complete list of possible values:

Looks like initial is the value you’re looking for.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.