英文:
Why wouldn't this html stop loading?
问题
当我将这行代码添加到我的HTML文件中时,我注意到页面无法停止加载。为什么?如何修复?
<input type="image" onload="this.src='done.bmp'" src="Loading.bmp">
英文:
I noticed when I added this line to my html file, the page won't stop loading. Why? And how do I fix this?
<input type="image" onload="this.src='done.bmp'" src="Loading.bmp" >
答案1
得分: 1
也许你应该使用
window.stop();
https://developer.mozilla.org/en-US/docs/Web/API/Window/stop
英文:
Maybe you should use
window.stop();
https://developer.mozilla.org/en-US/docs/Web/API/Window/stop
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论