confirm() event is used to return a boolean value (true or false). To simply display the values or message you may use alert() For example if you want the user to confirm before deleting a record you use this function like:
return confirm('Are you sure you want to delete this record?');
In your example above make these changes and test you will see the difference.
<script type="text/javascript">
{
function callall() {
var empText = document.getElementById("txtEmpName").value;
alert('You entered: ' + empText);
return confirm('Are you sure you want to post the vale: ' + empText +'?');
}
}
</script>