Changing cursor to waiting in javascript

This morning I couldn't remember this snippet of code for this so I went all Google on it only to be hit with a ton of complicated JQuery + CSS methods. Thats currently problem at the moment with going to for Js solutions, everyone suggests a library over the fast, lightweight, and cross-platform framework that is Vanilla JS.

So for my future reference and to show that you don't need a library for every request

// Cursor = waiting  = 'wait';  
// Cursor = back to how it was  = default';