onabort Event
Complete Event Reference
Definition and Usage
The onabort event occurs when loading of an image is aborted.
Syntax
onabort="SomeJavaScriptCode"
|
Parameter |
Description |
SomeJavaScriptCode |
Required. Specifies a JavaScript to be executed when the
event occurs. |
Supported by the following HTML tags:
Supported by the following JavaScript objects:
Example 1
In this example an alert box will be displayed if the loading of the image is aborted:
<img src="image_w3default.gif"
onabort="alert('Error: Loading of the image was aborted')">
|
Example 2
In this example we will call a function if the loading of the image is
aborted:
<html>
<head>
<script type="text/javascript">
function abortImage()
{
alert('Error: Loading of the image was aborted');
}
</script>
</head>
<body>
<img src="image_w3default.gif"
onabort="abortImage()">
</body>
</html>
|
Complete Event Reference
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|