<input type = "text" id="football" />

对上面获取焦点。

1.获取dom对象

var domFocus = document.getElementById("football");

2.dom对象获取焦点

domFocus.focus();

posted on 2014-01-15 09:14  lamiyiyi  阅读(642)  评论(0)    收藏  举报