-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstring.html
More file actions
26 lines (25 loc) · 903 Bytes
/
string.html
File metadata and controls
26 lines (25 loc) · 903 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>String Test</title>
</head>
<script>
var str = "Javascript";
document.write("anchor(): " + str.anchor() + "<br/>");
document.write("big(): " + str.big() + "<br/>");
document.write("blink(): " + str.blink() + "<br/>");
document.write("bold(): " + str.bold() + "<br/>");
document.write("fixed(): " + str.fixed() + "<br/>");
document.write("fontcolor(): " + str.fontcolor('red') + "<br/>");
document.write("fontsize(): " + str.fontsize(5) + "<br/>");
document.write("italics(): " + str.italics() + "<br/>");
document.write("link('URL'): " + str.link("www.google.com") + "<br/>");
document.write("small(): " + str.small() + "<br/>");
document.write("strike(): " + str.strike() + "<br/>");
document.write("sub(): " + str.sub() + "<br/>");
document.write("sup(): " + str.sup() + "<br/>");
</script>
<body>
</body>
</html>