Fires when the user aborts the download.
Overview Table Synchronous No Bubbles No Target dom/Element Cancelable Yes Default action Halts downloading of the designated image, but not due to an error## Examples
<img id="imgLogo" title="Click to view larger image" src="example.com/small.jpg" alt="small logo"/>
<script type="text/javascript">
var myAddEvent=function(el, ev, fn){
if(el.addEventListener){
el.addEventListener(ev, fn, false);
}else if(el.attachEvent){
el.attachEvent('on'+ev,fn);
}else{
el['on'+ ev] = fn;
}
};
var el=document.getElementById('imgLogo');
function imgAbortHandler(evt){
}
function imgResize(evt){
document.getElementById('imgLogo').src='http://example.com/big.jpj';
document.getElementById('imgLogo').title='big logo';
}
myAddEvent(el,'click',imgResize);
myAddEvent(el,'abort',imgAbortHandler);
Usage
Used to recover the original resource if the user cancels the download.
Notes Remarks
Halts downloading of the designated image, but not due to an error. To invoke this event, do one of the following:
The pEvtObj parameter is required for the following interfaces:
Mozilla Developer Network : abort Article]
Microsoft Developer Network: [abort Event Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4