<html>
<head>
<title>with</title>
<script language="javascript">
<!--
with(document){
write("您好!");
write("<br />这个文档的标题是:"+title);
write("<br />这个文档的URL是:"+URL);
write("<br />现在您不用每次都写出document对象的前缀");
}
-->
</script>
</head>
<body>
</body>
</html>