Can someone please modify the code below to convert to uppercase on click?
Thank you!
Leppo
<html>
<head>
<title>Element Array</title>
<script language=”Javascript”>
function prompt(msg) {
msg.value = msg.value.toUpperCase()
}
</script>
</head>
<body>
<form>
Enter your first name:<input type=”test” name=”firstName” value=”” onChange=”prompt(this)”><p>
Enter your last name:<input type=”test” name=”lastName” value=””
onChange=”prompt(this)”><p>
Enter your address:<input type=”test” name=”address” value=””
onChange=”prompt(this)”><p>
Enter your city:<input type=”test” name=”city” value=””
onChange=”prompt(this)”><p>
<INPUT TYPE=”button” NAME=”Convert” VALUE=”Convert to Uppercase” onClick=”javascript:test=test.toUpperCase()”>
</form>
</body>