在aspx页面中写如如下代码:
<INPUT id="major" type="button" value="领域选择" name="major" runat="server">
是不是缺少一个onclick事件啊?请大家赐教

解决方案 »

  1.   

    <INPUT id="major" type="button" value="领域选择" name="major" runat="server" onclick="window.open('webform2.aspx');">
      

  2.   

    <script language="JavaScript">
    <!--
    var whatsNew = open('','_blank','top=50,left=50,width=200,height=300,' +
                    'menubar=no,toolbar=no,directories=no,location=no,' +
                    'status=no,resizable=no,scrollbars=yes');
    whatsNew.document.write('<center><b>更新通知</b></center>');
    whatsNew.document.write('<p>最后更新日期:00.08.01');
    whatsNew.document.write('<p>00.08.01:增加了“我的最爱”栏目。');
    whatsNew.document.write('<p align="right">' +
                    '<a href="javascript:self.close()">关闭窗口</a>');
    whatsNew.document.close();
    -->
    </script>
      

  3.   

    直接加在Html控件里面,onclick="javascript:window.open('');"