Click to See Complete Forum and Search --> : a simple question, hopefully


Da Warriah
12-07-2002, 04:58 PM
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 &amp;nbsp; ?

Da Warriah
12-07-2002, 08:10 PM
ok, i was thinking there was a specific code...lol im such a blond (or brunette;) )