How to find the control type in javasccript?. Say if i have an ASP.NET LinkButton and i wanna find control type from the javascript. How can i do that.
I tried using typeof(), but it giving me an object back.
and i tried
var control = document.getElementById(Id);//Id is the ClientId of the Linkbutton
alert(control.type);//this is empty.
you can’t get control type directly by javascript.
you can try to use some serverside code to determine control class name: