摘要: document.getElementById(" ") 得到的是一个对象,用 alert 显示得到的是" object",而不是具体的值,它有 value 和 length 等属性,加上 .value 得到的才是具体的值! 参考资料: 1. document . getElementById 的用法和 DHTML.CHM 的下载地址 今天在网络上查找 document . getElementB... 阅读全文
posted @ 2010-01-18 13:16 哈仔 阅读(1425) 评论(2) 推荐(0)
摘要: Attributes.Add("javascript事件","javascript语句");如:this.TextBox1.Attributes.add("onblue", "window.Label1.style.backgroundColor='#000000';");this.TextBox1.Attributes.Add("onblur","this.style.display='none... 阅读全文
posted @ 2010-01-18 13:10 哈仔 阅读(5596) 评论(0) 推荐(4)