
I got a requirement like this,
If the user is trying to fill a text field, i have to restrict him

<html>
<script>
function getValue(){
var v=window.prompt("Enter your name: ");
document.getElementById("cal").value=v;
}
function valid(){
alert('Click the button');
document.getElementById("cal").value="";
}
</script>
<input type="text" id="cal" onkeydown="valid();"><input type="button" value="popup" onclick="getValue();">
</html>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
