getAttribute
setAttribute
<!DOCTYPE HTML PUBLIC "
<html>
<head>
<meta http
<title>Untitled Document</title>
<script language="JavaScript">
function change() {
var input = document
alert(input
input
alert(input
}
</script>
</head>
<body>
<ul id="u">
<li id="li
<li>J
<li>Haha!</li>
</ul>
<input type="button" value="Change" onClick="change();" />
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20051.html