'document.input.message'为空或不是对象!!!!!!!
怎么回事呢?????????

解决方案 »

  1.   

    是在脚本中的么
    document.all.item("input").value
      

  2.   

    脚本的,
    function hyperlink() {
            if (helpmode) {
                    alert(link_help);
            } else if (advmode) {
                    AddTxt=" ";
                    AddText(AddTxt);
            } else { 
                    txt2=prompt(link_normal,""); 
                    if (txt2!=null) {
                            txt=prompt(link_normal_input,"http://");      
                            if (txt!=null) {
                                    if (txt2=="") {
                                            AddTxt="
                                            AddText(AddTxt);
                                            AddText("">"+txt;
                                            AddText(AddTxt);
                                            AddText("
    ");
                                    } else {
                                            AddTxt=""+txt2;
                                            AddText(AddTxt);
                                            AddText("
    ");
                                    }         
                            } 
                    }
            }
    }
    function AddText(NewCode) {
            if(document.all){
             insertAtCaret(document.input.message, NewCode);
             setfocus();
            } else{
             document.input.message.value += NewCode;
             setfocus();
            }
    }
    function insertAtCaret (textEl, text){
            if (textEl.createTextRange && textEl.caretPos){
                    var caretPos = textEl.caretPos;
                    caretPos.text += caretPos.text.charAt(caretPos.text.length - 2) == ' ' ? text + ' ' : text;
            } else if(textEl) {
                    textEl.value += text;
            } else {
             textEl.value = text;
            }
    }
    我想把我的加的连接加入textbox4里,不会,出错,怎么办!!!!!