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
Release: 2016-06-24 12:17:18
Original
6714 people have browsed it





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?

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template