You can use this logic in HTML.....
<b> Enter Text :</b> <input type="text" onchange="ChangeLabel(this);" /><br />
<b> Entered Text:</b> <span id="lblText" ></span>
<script type="text/javascript">
function ChangeLabel(obj) {
lblText.innerHTML = obj.value;
}