>set a background color for the body. i get a nasty grey, rather than the Why do you have grey as the default BG?? is it to catch out lazy coders like me ;-? I liked your function too, much more elegant. But then I never was a JS guru like yourself ;-) Thanks as ever for the help