If i write some thing in input field and then i pressed enter then it should alert the specific value.Here is the code. please help me
<html>
<input type="text" class="searchfld" id='input' onchange="gotothatpost(this.value)"onkeyup="ajxsrch(this.value,getAscii())">
</html>
<script>
function ajxsrch(str,asci)
{
if(asci==13)
{
alert("You pressed enter");
}
else
{
do something;
}
}
</script>