我在C#后台生成了一个button,我希望在javascript里有个控件的onchange事件,使这个button获得焦点。
在C#端给button负了ID
{
ImageButton btn = new ImageButton();
btn.ID = "GoPage";
btn.CommandName = "PageButton";
btn.CommandArgument = cmdArg;
btn.CssClass = "SYS_button_arrow";
btn.ImageAlign =System.Web.UI.WebControls.ImageAlign.Middle;
btn.Command += new CommandEventHandler(btn_Command);
btn.ImageUrl =  System.Web.HttpContext.Current.Request.ApplicationPath + "/images/" + imgUrl;
btn.Enabled = isEnable;

btn.BorderStyle = System.Web.UI.WebControls.BorderStyle.None;

但在javascript里如何获得该控件呢?var obj = document.getElementbyId("GoPage").getElementsByTagName
alert(obj);或alert(document.all.GoPage);
都不行