How to stop page load in html static page

后端 未结 11 1444
庸人自扰
庸人自扰 2020-11-30 02:35

Is there in HTML (javascript) or other static html tech can:

  • Stop page loading (if browser does not download yet)
  • Stop page rendering (from where the
11条回答
  •  情歌与酒
    2020-11-30 02:58

    You could also hide the body like that:

    var style = document.createElement("style");
    style.innerHTML="body { display:none !important; }";
    document.getElementsByTagName("HEAD")[0].appendChild(style);
    

提交回复
热议问题