JavaScript Reference/Javascript Properties/defer
Версия от 18:30, 25 мая 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