<!DOCTYPE html>

<html>

<head>

<meta charset="EUC-KR">

<title>Insert title here</title>

</head>

<script type="text/javascript">

function textUpper(){

var str = fn.text1.value;

fn.text2.value = str.toUpperCase();

}

</script>

<body>

<form name = "fn">

<table bgcolor="yellow" border="1" width="50%" align="center">

<tr>

<td align="center">소문자입력 :</td>

<td><input type="text" name="text1"><input

type="button" name="text1Btn" value="변환하기" onclick="textUpper()"></td>

</tr>

<tr>

<td align="center">변환 대문자 출력 :</td>

<td><input type="text" name="text2" size="30"></td>

</tr>

<tr>

<td colspan="2" align="center">소문자로 데이터를 입력하세요 -> 대문자로 변경됩니다.</td>

</tr>

</table>

</form>

</body>

</html>

블로그 이미지

왕왕왕왕

,