1.页面输出用document.write()方法,可是不能够在window.onload中用,不然整个html页面将被覆盖。javascript
2.经过javascript获取对象后,改变对象中的html内容:document.getElementById(id).innerHTML=new HTML。css
3.改变对象的属性:document.getElementById(id).attribute=new value。html
4.改变对象的css属性:document.getElementById(id).style.property=new style。java