Oh. I knew about the space, I just put it there so on the post you could tell the differece between two ' and ". I got it working anyway, actually. I have one more issue concerning form submission, though.
var name = document.getElementById ('name');
document.write('Name:' + name);
and the html is
<form name="form" onSubmit="submitForm()">
<input type="text" value="name" name="name" id="name" onfocus="clearMe(this)">
This doesn't seem to be working. D: