author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 06 Nov 2010 11:08:52 +0200 | |
changeset 664 | 5f49753073d7 |
parent 586 | 0b065ce3d94c |
child 693 | 14208482f30d |
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" |