JavaScript Reference/Javascript Properties/declare — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:21, 26 мая 2010
Содержание
"declare" Example
<html>
<body>
<script>
function function1() {
document.all.myObject.declare = true;
}
</script>
<object id="myObject"
codebase="http://download.macromedia.ru/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="250"
height="230">
<param name="movie" value="yourflash.swf">
<param name="quality" value="high">
</object>
</body>
</html>
"declare" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<object> |
+----------------+--------------------------------------------------------------+
"declare" Possible Values
Possible Values
true
false.
"declare" Syntax and Note
Note:
Read and write property.
Whether or not to simply declare the element without loading or running it.
Syntax:
document.getElementById("objectID").declare = value
document.all.objectID.declare = value // IE only