[

버튼으로 텍스트영역의 크기를 제어합니다

· 2004-11-30 (화) 23:09:46 · 3433
자바스크립트로 textarea 의 rows, cols 속성을 제어하는 스크립트 입니다.
사용자 입력영역을 많이 사용하는 페이지에서 사용자 편의를 향상 시킬수 있습니다

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Sample Script </title>
<meta http-equiv=content-type content=text/html; charset=euc-kr>
</head>

<body>


<form name="form1" method=post action="http://www.jasko.co.kr/result.html" onsubmit="">
<input type="button" name="button1" onclick="javascript:this.form.area.rows +=1" value=" R++ ">
<input type="button" name="button1" onclick="javascript:this.form.area.rows -=1" value=" R-- ">
<input type="button" name="button1" onclick="javascript:this.form.area.cols +=1" value=" C++ ">
<input type="button" name="button1" onclick="javascript:this.form.area.cols -=1" value=" C-- ">
<p>
<textarea name="area" rows="10" cols="50"></textarea>
</form>


</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
기타
bbbking
05-06-27 조회 8,460
JavaScript 05-06-24 조회 5,617
JavaScript 05-06-24 조회 4,812
기타 05-06-24 조회 5,249
기타 05-06-24 조회 3,311
기타 05-06-24 조회 3,095
기타 05-06-24 조회 4,641
기타 05-06-24 조회 5,086
기타 05-06-24 조회 6,673
JavaScript 05-06-21 조회 8,477
Flash 05-06-20 조회 5,372
기타 05-06-17 조회 6,664
기타 05-06-17 조회 5,282
JavaScript 05-06-17 조회 5,652
기타
bbbking
05-06-16 조회 1.2만
JavaScript 05-06-15 조회 5,953
MySQL 05-06-15 조회 5,985
기타 05-05-04 조회 4,340
JavaScript 05-05-04 조회 4,307
기타 05-05-04 조회 3,721
기타 05-04-26 조회 3,007
기타 05-04-24 조회 3,893
MySQL 05-04-23 조회 5,350
MySQL 05-04-20 조회 6,019
MySQL 05-04-19 조회 1.3만
MySQL 05-04-19 조회 8,172
기타 05-04-14 조회 6,131
기타 05-04-11 조회 5,069
JavaScript 05-04-11 조회 5,409
기타 05-04-11 조회 3,727