input type=button Element

xhtml:input type=button Element
 
이 컨트롤은 사용자의 특정 액션을 받아들이기 위한 input 엘리먼트의 한 종류로서 웹 페이지내에 이미지 형식의 버튼이 아니라 일반적인 버튼을 표현할 때 사용된다. 사용자가 버튼을 클릭할 때 인터랙티브(Interactive)하게 원하는 스크립트 함수를 지정하고자 할 때 많이 사용된다.
분류 구분 비고
Syntax HTML
Script
< input type="button"   propName = "propVal"> innerString  < /input >
[propVal] = object .PropName;
Element Information Standards
  • IE3.0 이상에서 엘리먼트와 스크립트를 사용할 수 있다.
  • HTML3.2에 정의되었다.
  • Sample
    …(생략)…
    <script>
    function click_event()
    {
        alert("your name is " + i_type.value)
    }
    </script>
    
    <input type="button" value="버튼" name="i_type" onclick="click_event();">
    …(생략)… 

    댓글 없음: