Me again, sorry guys.
I have the function below working so that if you haven't written in a text field when you click away from it the original value text returns. The thing is if some one has clicked on the text field and typed but then deleted it then they could have potentially left whitespace behind - and whilst whitespace isn't visible it makes the field value not empty so the onBlur bit doesn't work as intended.
So I'm looking for a regex that will be able to test the field value and check for anything but whitespace - if no proper charcters are found then revert to the original value text. I have tried testing things like /[^\S*]/ but I haven't got it working - maybe I'm just being dumb but I'm stuck.
[The Code]
<input type="text" name="n" value="Your message" onFocus="if(this.value=='Your message')this.value='';" onBlur="if(this.value=='')this.value='Your message'">
Thanks