Swap default field value using pure JavaScript
<p>I've written some code in jQuery for removing/replacing the default value of an e-mail field on focus and blur events. Its' working fine,</p>

<p>But I wanted it in JavaScript .. I've tried several times but I couldn't succeed. </p>

<p>here's my jQuery Code </p>

<pre><code>    $(document).ready(function(){
    var email = 'Enter E-Mail Address....';
    $('input[type="email"]').attr('value',email).focus(function(){
        if($(this).val()==email){
            $(this).attr('value','');
        }
    }).blur(function(){
        if($(this).val()==''){
            $(this).attr('value',email);
        }
    }); 
});
</code></pre>

<p>can anyone tell me how to do it in JavaScript,</p>
