<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<title></title>
<script type= "Text/javascript" src= "Scripts/common.js" ></script>
<body>
<div id= "Divfirst" >
</div>
<div id= "Divsecond" >
</div>
<div id= "Divthird" >
</div>
<script type= "Text/javascript" >
$ (' Divfirst '). InnerHTML = "<a href= ' http://www.baidu.com ' >go to baidu</a>";
updatehtml (' Divsecond ', ' <input type= ' text "value=" I am text box "/> ');
UPDATETEXT (' Divthird ', ' <pre> text content, not html</pre> ');
WriteHTML (' Hello, classmate! ‘);
Writep ("I am a paragraph content");
Writetable (10, 3);
WriteHTML (getDateString ());
WriteHTML ("<br>");
Writeselectlist ([' BMW ', ' Benz ', ' Audi ']);
Writelist ([' Apple ', ' banana ', ' cat ']);
</script>
<ul>
<li onmouseover= "SetColor (This, ' Red ')" onmouseout= "SetColor (This, ' white ')" >apple</li>
<li onmouseover= "SetColor (This, ' Red ')" onmouseout= "SetColor (This, ' white ')" >banana</li>
<li onmouseover= "SetColor (This, ' Red ')" onmouseout= "SetColor (This, ' white ')" >cat</li>
</ul>
</body>
JavaScript Getting Started case