简体   繁体   English

强制Google Chrome浏览器在重新加载时显示空白页

[英]Force Google Chrome to display blank page on reload

I see if we reload page in IE/Edge or Chrome/Firefox there is a big difference. 我看我们是否在IE / Edge或Chrome / Firefox中重新加载页面有很大的不同。 IE/Edge cleans the page and shows white page but Chrome/Firefox does not. IE / Edge会清理页面并显示白页,但Chrome / Firefox不会。

Is it possible somehow using JavaScript to say Chrome/Firefox like hey, please show me the blank page instead of the current page? 是否可以使用JavaScript像Chrome一样说Chrome / Firefox,请给我显示空白页面而不是当前页面?

Thank you! 谢谢!

I found how to do it. 我找到了怎么做。

  window.onbeforeunload = function (e) {
        $("html,body").hide();        
    };

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM