如何在javasccript中找到控件类型?说如果我有一个ASP.NET的LinkButton,我想从javascript中找到控件类型。我怎样才能做到这一点。 我尝试使用typeof(),但它给我一个对象。 我试图在javascript中找到html控件的类型
var control = document.getElementById(Id);//Id is the ClientId of the Linkbutton
alert(control.type);//this is empty.
啊..反正它会呈现为锚标记。如何知道它是一个锚标签? – nimi 2010-08-09 10:25:44
control.tagName =='a' – ggarber 2010-08-09 10:44:01