a simple question, hopefully

wxdqz

New Member
ok, i know that a line break is \n, but anyone know what the "code" is for a space? see im using charAt() to specify certain things, but i need to set up an if statement for if the character is a space, to do a certain thing...anyone know how i would set up this statement? for example, this is basically want to do:

if (blah.charAt(3) = <code for space>) {
document.write('blah');
}

i know its dumb, but the code is kind of long to write out the entire thing, so if you know, could you just tell me the sort of code thing for a space, or is it just &nbsp; ?
 
Top