Okay, I'm pretty new to the JavaScript stuff, and I would like some help.
The variable that needs to be auto-refreshed:
var width = document.body.clientWidth;
So basically, I want to do different stuff depending on the width of the document. But how do I auto-update the value of width? Please JavaScript only, since I don't really get jQuery yet.
Thanks in advance! :)