html5 修改title

code

<a id="baidu_link" href ="www.baidu.com" title="百度"/>


<script type="text/javascript">
function setTitle()
{
    document.getElementById( "baidu_link" ).title = "跳转到百度";
}
</script>

 

 

 

 

 

 

 

posted @ 2020-08-19 17:36  anobscureretreat  阅读(265)  评论(0编辑  收藏  举报