亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        頁(yè)面加載textarea后自動(dòng)獲取焦點(diǎn)

        字號(hào):


            頁(yè)面加載textarea后自動(dòng)獲取焦點(diǎn),在頁(yè)面加載的時(shí),調(diào)用此方法,可使指定的表單控件得到焦點(diǎn)。
            function setFocus(obj){
            if(obj.setSelectionRange){
            setTimeout(function(){
            obj.setSelectionRange(0,0);
            obj.focus();
            },100);
            }else{
            if(obj.createTextRange){
            var range=obj.createTextRange();
            range.collapse(true);
            range.moveEnd("character",0);
            range.moveStart("character",0);
            range.select();
            }
            try{obj.focus();}catch(e){}
            }
            }
            function setFocus(obj){
            if(obj.setSelectionRange){
            setTimeout(function(){
            obj.setSelectionRange(0,0);
            obj.focus();
            },100);
            }else{
            if(obj.createTextRange){
            var range=obj.createTextRange();
            range.collapse(true);
            range.moveEnd("character",0);
            range.moveStart("character",0);
            range.select();
            }
            try{obj.focus();}catch(e){}
            }
            }