Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


Maybe I'm missing something here, but window.setAttribute(...) throws an error.

I'm using window.setCursor('wait') and window.setCursor('auto') for get this effect.

- ng.mangine

Document Tags and Contributors

 Contributors to this page: Ng.mangine
 Last updated by: Ng.mangine,