javascript代码,怎么操作表单输入框获得焦点时的边框啊?
<!doctypehtml><html><head><metacharset="utf-8"><title>无标题文档</title></head><scripttype...
<!doctype html><html><head><meta charset="utf-8"><title>无标题文档</title></head><script type="text/javascript"> window.onload = function () { var text1 = document.getElementsByClassName('text1'); text1[0].onfocus = function () { text1[0].style.border = 'none'; } /*text1[0].onblur = function () { alert('222'); }*/ }</script><body><input type="text" name="text1" class="text1" id="text1"></body></html>代码在这里,麻烦哪位大神能指导一下,感谢
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询