好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

html中会在图像加载被中断时发生的事件onabort

在本例中,如果图像的加载中断,我们将调用一个函数:

<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的详细内容...

  阅读:47次