<td onclick="alert(this.innerText);">hahahahahah</td>

解决方案 »

  1.   

    <table border=0>
    <td id=test onclick="alert(test.outerText);">aaaa</td>
    </table>这样可以有100分吗?
      

  2.   

    <table>
    <tr ondblclick="getValue(this)">
     <td>aaaa</td>
    </tr>
    <tr ondblclick="getValue(this)">
     <td>bbbbbb</td>
    </tr>
    </table>
    <script>
    function getValue(obj){
      alert(obj.innerText);
      return obj.innerText;
    }
    </script>
      

  3.   

      <td ondblclick="javascript:alert(this.innerText);" >hahahahahah</td>
      

  4.   

    <tr ondblclick="mm(this)">JS:
    function mm(e)
    {
      alert(e.outerHTML);
    }
      

  5.   

    在<td onclick="  在这里能用if 之类的语句  "></td>
      

  6.   

    window.showModalDialog("AgreeMent.asp","","dialogWidth=500px;dialogHeight=500px");
    还有其它的的参数吗
    那么showModalDialog的位置怎么来确定???????
      

  7.   

    showModalDialog(sURL [, vArguments] [, sFeatures]])  
    //打开一个模式对话框  
    //vArguments=需要向新开模式对话框传递的参数  
    //sFeatures=(*dialogHeight: sHeight; dialogLeft: sXPos;
    dialogTop: sYPos; dialogWidth: sWidth;
    center:{ yes | no | 1 | 0 | on | off };
    dialogHide:{ yes | no | 1 | 0 | on | off };
    edge:{ sunken | raised };
    help:{ yes | no | 1 | 0 | on | off };
    resizable:{ yes | no | 1 | 0 | on | off };
    scroll:{ yes | no | 1 | 0 | on | off };
    status:{ yes | no | 1 | 0 | on | off };
    unadorned:{ yes | no | 1 | 0 | on | off };*)