如题

解决方案 »

  1.   

    可以,ASP.NET也可以,类似function也可以调用this
      

  2.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>无标题页</title>
        <script type="text/javascript">
        function ShowInfo()
        {
          var oDiv=document.getElementById('h1');
          alert(oDiv.innerHTML);
          alert(oDiv.getAttribute('href'));
        }
        </script>
    </head>
    <body>
      <div style="display:none;"><a id="h1" href="http://www.blog.csdn.net/ws_hgo">要得到的文本 </a> </div>
    <input id="Button1" type="button" value="点击" onclick="ShowInfo(this);" /></body>
    </html>
      

  3.   

    恩,是可以的 <asp:CheckBox ID="CheckBox1" runat="server"  onclick="onclickme(this)" />