You must post your proper code and not
document.getElementById('bla').inner… enter your name";
But you should be aware that form validation of the pattern if (document.formname.formfield.value == "") - that is blank - is barely worthy of the name, and virtually useless, as even a single space, an X or a ? will return false, that is pass the validation. A proper name may only contain letters, hyphen, space and apostrophe. Numeric values, such as zip codes, phone numbers and dates, should be validated as such. Ditto email addresses. This topic has been covered many times before in this forum.
A form field can never be null. Only "" (blank).
document.getElementById("bla").inner… " +x;
document.getElementById("bla").innerHTML += x; or document.getElementById("bla").innerHTML = x;
Don't give your fields silly names such as "bla".
Form names are obsolete. You should rather assign an id.
A child of five would understand this. Send someone to fetch a child of five.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Last edited by Philip M; 02-18-2013 at 10:45 AM..