2 回答
TA贡献1802条经验 获得超10个赞
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<script language="javascript">
<!--
document.write("testtest<br/>testtest");
// -->
</script>
</BODY>
</HTML>
=================
Writes one or more HTML expressions to a document in the specified window.
Syntax
document.write(sText)
Parameters
sText Required. String that specifies the text and HTML tags to write.
Return Value
No return value.
Remarks
You should not use the write or writeln methods on the current document after the document has finished loading unless you first call the open method, which clears the current document's window and erases all variables.
- 2 回答
- 0 关注
- 971 浏览
添加回答
举报