setAttribute
来源:互联网 发布:Javascript算法 编辑:程序博客网 时间:2024/04/30 10:14
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>setAttribute 测试</title>
<script language="javascript" type="text/javascript">
<!--
function init() {
var obj = document.getElementById("btn");
obj.onclick=changeValue;
//改变样式IE 不支持class obj.className="style1";
//
obj.style.background="#CC6600";
}
function changeValue() {
document.getElementById("txt").value = "New value!";
}
-->
</script>
</head>
<body onload="init();">
<input name="btn" type="button" id="btn" value="Click" />
<input name="txt" type="text" id="txt" value="" />
</body>
</html>
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>setAttribute 测试</title>
<script language="javascript" type="text/javascript">
<!--
function init() {
var obj = document.getElementById("btn");
obj.onclick=changeValue;
//改变样式IE 不支持class obj.className="style1";
//
obj.style.background="#CC6600";
}
function changeValue() {
document.getElementById("txt").value = "New value!";
}
-->
</script>
</head>
<body onload="init();">
<input name="btn" type="button" id="btn" value="Click" />
<input name="txt" type="text" id="txt" value="" />
</body>
</html>
- setAttribute
- setAttribute
- setAttribute
- setAttribute
- setAttribute
- requset.setAttribute(),session.setAttribute(),aplication.setAttribute()区别
- setAttribute注意
- request.setAttribute
- application.setAttribute
- request.setAttribute
- setAttribute()方法
- setAttribute使用
- setAttribute方法
- setAttribute总结
- setAttribute()方法
- request.setAttribute和session.setAttribute
- request.setAttribute和session.setAttribute
- request.getSession().setAttribute()和 request.setAttribute()
- Expert One-on-One Oracle Chapter 13 物化视图 读书笔记(1)
- 多年后从头敲打第一个C程序
- 安装 Sun JDBC-ODBC Bridge 驱动程序
- Pointers On C_读书笔记(一)
- JSF使用注意点
- setAttribute
- 筛选王 for Economist.com
- .NET Framework 3.5 中的功能简介(1)
- 线程池的使用(转载)
- DES算法代码
- crtexe.c作用
- 何时使用泛型集合
- 读<<Windows核心编程>>之进程准备篇 读书笔记
- 道冲,而用之有弗盈也。