在本例中,如果图像的加载中断,我们将调用一个函数:
<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> 以上就是html中会在图像加载被中断时发生的事件onabort的详细内容,更多请关注Gxl网其它相关文章!
查看更多关于html中会在图像加载被中断时发生的事件onabort的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did71985