Unir campos

Unir varios campos em um só

by Rapha Souza

HTML

<script>
function id( el ){
        return document.getElementById( el );
}
function ct_campos( campo )
{
        id('campo4').value += campo.value+' ';
}
</script>
</head>
<body>
        <input type="text" name="campo1" onblur="ct_campos( this )" /><br />
        <input type="text" name="campo2" onblur="ct_campos( this )" /><br />
        <input type="text" name="campo3" onblur="ct_campos( this )" /><br />
        <input type="text" name="campo4" id="campo4" />
        <br>
       
        <br />