blur focus 焦点選擇

访问 智 障 肥 強



<a href="http://c8cc168.blogspot.hk/" id="myAnchor">访问 智 障 肥 強</a>

<script type="text/javascript">


function getfocus()
{document.getElementById('myAnchor').focus()}


function losefocus()
{document.getElementById('myAnchor').blur()}

</script>
<input style="cursor:pointer" onclick="getfocus()" type="button" value="获得焦点" />
<input style="cursor:pointer" onclick="losefocus()" type="button" value="失去焦点" />

| css | html | focus | blur | focus() | blur() | cursor: pointer | button | value |

arrow
arrow
    全站熱搜

    c8cc168 發表在 痞客邦 留言(0) 人氣()