-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2.html
More file actions
28 lines (27 loc) · 856 Bytes
/
Copy pathtest2.html
File metadata and controls
28 lines (27 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html>
<head><title> The Second Example: Method and Property:test2</title>
<script>
<!--
document.write("Document URL : " + document.URL + "<br>");
document.write("Date of last modified :" + document.lastModified + "<br>");
document.write("Document Title: " + document.title + "<br>");
document.write("The background color is " + document.bgColor
+ " and the text color is " + document.fgColor);
document.fgColor = "yellow";
document.bgColor = "black";
//-->
</script>
<ul class="navbar">
<li><a href="index.html">首頁</a>
<li><a href="test1.html">連接1</a>
<li><a href="test2.html">連接2</a>
<li><a href="test3.html">連接3</a>
</ul>
</head>
<body>
<h2> The Second Example: Method and Property </h2>
The text and background color have been changed
because I modified the content of document.fgColor
and document.bgColor .
</body>
</html>