string strJsMsg = "window.open('Default2.aspx','status=no,toolbars=no,menubar=no,location=no,resizable=no,top=0,left=0,width=700,height=500');";
        string strTelno = "1317304";
        string str4 = "<font style=\"TEXT-DECORATION: underline;color:#0f0f0f;font-size:18px\"><b>" +strTelno + "</b></font>&nbsp;给你发信息啦,<a href=\"#\" onclick=\"javascript:parent." + strJsMsg + ";\">查看信息</a>";tb.text=str4;              执行后提示脚本发生错误.\
行:1
字符:1:
错误:参数无效.……………………
是否继续在该页面上运行脚本程序?是,否?点击是后,没反应,弹不出Default2.aspx这个页面啊?

解决方案 »

  1.   

    string strTelno = "1317304";
    这个参数有问题
      

  2.   

    string strJsMsg = "window.open('Default2.aspx','status=no,toolbars=no,menubar=no,location=no,resizable=no,top=0,left=0,width=700,height=500');";
            string strTelno = "1317304";
            string str4 = "<font style=\"TEXT-DECORATION: underline;color:#0f0f0f;font-size:18px\"><b>" +strTelno + "</b></font>&nbsp;给你发信息啦,<a href=\"#\" onclick=\"javascript:parent." + strJsMsg + ";\">查看信息</a>";tb.text=str4;
      

  3.   

    string strJsMsg = "window.open('Default2.aspx','status=no,toolbars=no,menubar=no,location=no,resizable=no,top=0,left=0,width=700,height=500');"; 
            string strTelno = "1317304"; 
            string str4 = " <font style=\"TEXT-DECORATION: underline;color:#0f0f0f;font-size:18px\"> <b>" +strTelno + " </b> </font>&nbsp;给你发信息啦, <a href=\"#\" onclick=\"javascript:" + strJsMsg + ";\">查看信息 </a>";