欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML DOM focus() 方法

定義和用法

focus() 方法用于給予鏈接焦點(diǎn)。

語(yǔ)法

anchorObject.focus()

說(shuō)明

該方法可滾動(dòng)文檔以使 Anchor 對(duì)象的位置變?yōu)榭梢?jiàn)。

實(shí)例

<html>
<head>
<style type="text/css">
a:active {color:green}
</style>

<script type="text/javascript">
function getfocus()
{document.getElementById('myAnchor').focus()}

function losefocus()
{document.getElementById('myAnchor').blur()}
</script>
</head>

<body>
<a id="myAnchor"
href="http://www.dbjr.com.cn">Visit jb51.net</a>
<br /><br/>
<input type="button" onclick="getfocus()" value="Get focus">
<input type="button" onclick="losefocus()" value="Lose focus">
</body>

</html>