HTML CSS Reference/HTML Attributes Reference/src 2 — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:20, 26 мая 2010
"src" Example
<HTML>
<head><Title>Example For src</Title>
<script language="JavaScript1.2" src="myJSfile.js"></script>
</head>
<BODY>
</BODY>
</HTML>
"src" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<script> |
+----------------+--------------------------------------------------------------+
"src" Syntax and Note
Note:
This attribute is used with the <script> element.
It specifies the URL of an external JavaScript file.
The file specified must contain the appropriate suffix for JavaScript files (.js).
Syntax:
<script src="value"> . . . </script>