author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 26 Sep 2010 18:27:31 +0300 | |
changeset 572 | 33e37333f3d5 |
parent 518 | 1e6ccb387d27 |
permissions | -rw-r--r-- |
79 | 1 |
-*- outline -*- |
2 |
||
517
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
3 |
* HTML. |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
4 |
|
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
5 |
<noscript> tag used to render HTML if JavaScript disabled in browser. |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
6 |
|
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
7 |
** Include in HTML. |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
8 |
|
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
9 |
<html> |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
10 |
<head> |
518
1e6ccb387d27
Fix 'script' tag closing according to standard.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
517
diff
changeset
|
11 |
<script type="text/javascript" src="abc.js"></script> |
517
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
12 |
</head> |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
13 |
... |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
14 |
<html> |
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
15 |
|
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
16 |
** Inline in HTML. |
79 | 17 |
|
18 |
<html> |
|
19 |
<h1>Hello!<h1/> |
|
517
acd9429b7505
Include JavaScript in HTML.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
20 |
<script language="javascript"> |
79 | 21 |
<!-- |
22 |
alert("Hello!") |
|
23 |
document.write("sin(10) = " + Math.sin(10)) |
|
24 |
//--> |
|
25 |
</script> |
|
26 |
</html> |
|
27 |
||
28 |
* Hot calc by Firefox. |
|
29 |
||
30 |
At URI type some thing like "javascript: 4+5" |