Hi,
i am using one text filed then entring the value into text filed and pressing F5.
here i am restricting the key and making it return false nad i am not loosing text field value.
here is my code
<html>
<body>
<input type=”text” name=”upfile” id=”upfile” onkeyDown=”ristrictcondition();”>
</body>
</html>
<script>
function ristrictcondition()
{
val = event.keyCode;
if(val == “116”)
{
alert(“Should not Refresh”);
document.form.file.focus();
document.form.file.select();
return false;
}
}
</script>
if the same thing i am doing for input type=”file”
here i am loosing my value when i press F5.
what i want is here also i need to main value even i press F5.
here is my code
<html>
<body>
<input type=”file” name=”upfile” id=”upfile” onkeyDown=”ristrictcondition();”>
</body>
</html>
<script>
function ristrictcondition()
{
val = event.keyCode;
if(val == “116”)
{
alert(“Should not Refresh”);
document.form.file.focus();
document.form.file.select();
return false;
}
}
</script>
cna any one tell me what is the problem it’s very urgent for me.
Thanks & Regards
By
Gopi.