Please login to start chat

ICT Solutions 25 Jun 2022, 11:35:58
Category : JavaScript Tutorials

onchange 1 (HTML DOM Events)

<!DOCTYPE html>
<html>
<head>
<title>JS Code Testing</title>
</head>
<body>
<input type = "text" id = "fname" onchange = "jsFun()">
<script>
function jsFun(){
var x = document.getElementById("fname");
x.value = x.value.toUpperCase();
}
</script>
</body>
</html>

Comments:

No comment to show.

Available Services
Download Android Application