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 關注
- 993 瀏覽
添加回答
舉報