How To Show Wait Cursor In Javascript

The cursor indicates that the program is busy.
How to show wait cursor in javascript. How do you show a submit wait cursor. The following example illustrates the usage. Onclick document body style cursor wait but where exactly in the code does this go. Posted 15 years ago.
The cursor can set to wait in javascript by using the property cursor property. Assign one of the cursor properties to document body style cursor to change the cursor. Will change the cursor back to the normal style. I am not certain if this is the best or most efficient method but if you want to change the cursor to show the page is busy after the button click the following jquery should do the trick.
Actually you can control the cursor under javascript control using css. Auto move no drop col resize all scroll pointer not allowed row resize crosshair progress e resize ne resize default text n resize nw resize help vertical text s resize se resize inherit wait w resize sw resize. Will change the cursor style to the hourglass. This post shows how to change the cursor on a web page with javascript by assigning a value to the document body style cursor property.
The cursor indicates that an edge of a box is to be moved left west wait. Always specify a generic cursor at the end of the list in case none of the url defined cursors can be used. The cursor indicates that an edge of a box is to be moved left west play it wait. Use these codes before calling the long process after the process is over.
Document ready function button click function css cursor wait. So i created a refresh button that calls a function called refreshtable. Sets the cursor shape to hour glass. The cursor indicates vertical text that may be selected.
Play it w resize. Assign a value to document body style cursor. I m moving this to the html forum for fourther discussion. Play it vertical text.
The cursor indicates vertical text that may be selected. The first example below will change the cursor to an hourglass. The table it refreshes contains a large amount of data so i want the cursor to change to a wait cursor until the table is done loading.