JavaScript Reference/Javascript Properties/defer — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:21, 26 мая 2010
Содержание
"defer" Example
<html>
<body>
<script language="javascript" defer="true">
function function1() {
document.all.myS.defer = false;
}
</script>
<script id="myS" language="javascript">
<input type="button" value=" onClick="function1();">
</script>
</body>
</html>
"defer" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<script> |
+----------------+--------------------------------------------------------------+
"defer" Possible Values
Possible Values
true
false.
"defer" Syntax and Note
Note:
Read and write property.
Defer a script"s execution.
Syntax:
document.getElementByid("scriptID").defer = value
document.all.scriptID.defer = value // IE only