1.obj.attachEvent("onclick",function funname(par1,par2,...){})
2.onj.οnclick=obj2.onclick
3.
NewTdObj0.onclick = new Function("f_tdclick(this)"); //单击第一列相对应单击“+”打开其子目录 4.NewTdObj0.οnclick=function()
{
this.parentElement.children(0).children(0).click()
}
转载于:https://www.cnblogs.com/goldnet/archive/2007/12/07/986381.html