I created a virtual keyboard with the following sample code.
<script type="text/javascript">
function vkb(vap){
document.forms["virtual"]["text"].value += vap;
}
</script>
<form name="virtual">
<input type="text" name="text"/>
<input type="button" onclick="vkb('a')" value="a" style="border:none;"/>
</form>
This code is unable to accept a ', and \ symbols. Then I modified my code in below way
<script type="text/javascript">
function vkb(vap){
document.forms["virtual"]["text"].value += vap;
}
function vkb1(){
document.forms["virtual"]["text"].value += "'";
}
</script>
<form name="virtual">
<input type="text" name="text"/>
<input type="button" onclick="vkb('a')" value="a" style="border:none;"/>
<input type="button" onclick="vkb1()" value="'" style="border:none;"/>
</form>
Now finally I have issue with only \ I am unable to add this stroke using my Virtual Keyboard. Can anybody help me how to add \ to textbox? Else anybody please provide me with the syntax to add \ using asci values.