event1.html 621 Bytes
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>イベントサンプル</title>
<script language="javascript" type="text/javascript">
function popUp() {
    var text = document.getElementById('t1');
    var lower_text = text.value.toUpperCase();
    text.value = lower_text;
}
</script>
</head>

<body>
  <input type="text" name="t1" id="t1" onkeyup="popUp()" />
</body>
</html>