JavaScript object.value is not working on Chrome
<p>I have a very simple HTML form. I wanted to change the value of the input field onfocus and onblur. </p>

<pre><code>var name = document.getElementById('name');

name.onfocus = function () {
    if (name.value == 'Your Name') {
        name.value = '';
    }
}

name.onblur = function () {
    if (name.value == '') {
        name.value = 'Your Name';
    }
}
</code></pre>

<p>(<a href="http://jsfiddle.net/eunushosen/nt76T/" rel="nofollow">jsfiddle demo</a>)</p>

<p>It works perfectly on Firefox, but no in Chrome. My chrome version is 26.0.1410.64 m.</p>
