JavaScript Reference/Event Handlers Reference/onError — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
Содержание
"onError" Example
<html>
<head>
<script language="JavaScript">
window.onerror = alert("Errors")
</script>
</head>
<body>
</body>
</html>
"onError" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<img> <object> |
| |<style> window |
+----------------+--------------------------------------------------------------+
"onError" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |ctrlLeft returnValue |
| |shiftLeft type |
+----------------+--------------------------------------------------------------+
"onError" Syntax and Note
Note:
This event fires when an object-loading operation fails.
This may occur for any number of reasons, such as
1)referencing an object that has not been instantiated,
2)calling a function that does not exist, or
3)referencing a variable that was not declared.