close

關鍵詞(keyword): onClick 、this、type
<script type="text/javascript">
function myMsg(myObj){
alert("type 為: " + myObj.type);
}
</script>
<input type="button" id="myButtonId" name="mybuttonName" class="mybuttonClass" value="送出" onclick="myMsg(this)">

結果:



 






 















其它文章

arrow
arrow

    PG Levin Li 發表在 痞客邦 留言(0) 人氣()