Html page:
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
Javascript Page:
<script>
function myFunction()
{
var res =
String.fromCharCode(65);
document.getElementById("demo").innerHTML = res;
}
</script>
Output:
A
No comments:
Post a Comment