• Home  >  Article  >  Web Front-end  >  A solution to automatically refresh web pages without making clicking sounds_javascript skills

    A solution to automatically refresh web pages without making clicking sounds_javascript skills

    WBOY
    WBOYOriginal
    2016-05-16 19:15:561021browse

    A solution to automatically refresh web pages without making clicking sounds is to use XMLHTTP. In fact, it's very strange. I don't know how Microsoft handles it. I changed the wording of scheduled refresh and it stopped making any sound. Posted now to share with everyone.
    Do not use the refresh attribute in the meta tag to refresh the page. You must use your voice for this. All you need to do is add this sentence.
    . . . .
    〈body onload="setTimeout('this.location.reload();',6000);"〉
    . . .
    In this way, the page is refreshed every 6 seconds, but there is no sound.
    No need for XMLHTTP. In fact, it's very strange. I don't know how Microsoft handles it. I changed the wording of scheduled refresh and it stopped making any sound. Posted now to share with everyone.
    Do not use the refresh attribute in the meta tag to refresh the page. You must use your voice for this. All you need to do is add this sentence.
    . . . .
    〈body onload="setTimeout('this.location.reload();',6000);"〉
    . . .
    In this way, the page is refreshed every 6 seconds, but there is no sound.

    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