Home >Web Front-end >HTML Tutorial >What does the following code mean? Experts please come in_html/css_WEB-ITnose

What does the following code mean? Experts please come in_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:186700browse





Loading...
<script>window.onload=function(){self.location.reload() ;}</script>



Loading, please wait...




========== ===================================
What do the above codes mean? What does it do? Please tell me in detail! I will post it


Reply to the discussion (solution)

Keep loading the page. It has no practical significance. It is usually used in boring advertisements or when refreshing data.

self.location.reload();
Reopen the page

window.onload Triggered when the page is opened

window.onload=function(){self.location.reload();
Reload the page after the page is loaded

Very boring stuff

It’s just loading a page over and over again... I’d like to say something weak, am I sick...

That code can prevent 360 Security Guard from phishing, I’ve seen it a lot When the website does that, it seems that the code is not added to the version program. Does any expert know how to do it?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn