例1:
<Script>
document.bgColor = "white";
document.fgColor = "black";
document.linkColor = "red";
document.alinkColor = "blue";
document.vlinkColor = "purple";
</Script>
测试文件对象的颜色属性:<BR>
<A HREF="http://www.hubert.idv.tw">文哥网路技术学习网</A>
例2:
<Script>
var update_date = document.lastModified;
var formated_date = update_date.substring(0,10);
document.write("本网页更新日期:" + update_date + "<BR>")
document.write("本网页更新日期:" + formated_date)
</Script>