Browsers do not support JavaScript, please refresh the page manually!

Source: Internet
Author: User

Recently the local site suddenly appeared this inexplicable content ~!!

It would have been the content of the navigation bar of the website (pulled through Ajax)

The result is replaced with this content, and the code with JS, always let the entire page automatically refresh

I don't know what the situation is.

1 <HTML>2     <Head>3         <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">4     </Head>5     <NoScript>Browsers do not support JavaScript, please refresh the page manually!</NoScript>  6     <Body>7        <H1ID= "MSG"></H1>8     </Body>9     <Scripttype= "Text/javascript">Ten         varDT= NewDate (); One dt.setseconds (dt.getseconds ()+  -); A Document.cookie= "cookietest=1; expires=" +dt.togmtstring (); -         varcookiesenabled=Document.cookie.indexOf ("cookietest=") != -1;  -  the         functionGetCookie (name) -             { -                 varArr,reg=NewRegExp ("(^| )"+name+"=([^;] *)(;|$)"); -                 if(arr=Document.cookie.match (reg)) +                     returnarr[2]; -                 Else +                     return NULL; A             } at              -         varPreurl=GetCookie ("Preurl");  -         varCookie_captchakey=GetCookie ("Cookie_captchakey");  -         varExpire=GetCookie ("Cookie_captchaexpire");  -  -         if(Cookie_captchakey== NULL||Expire== NULL){ in             varmsg= "Browser Security check ..... Please later"; - document.getElementById ("msg"). InnerHTML=msg; to             if(Preurl==NULL) +             { -                 if(!cookiesenabled) {  the                         varmsg="Browser does not support cookies, page cannot be accessed"; * document.getElementById ("msg"). InnerHTML=msg; $                 } Else {Panax Notoginseng Preurl=Window.location.pathname; - SetTimeout ("javascript:window.location.href = '"+Preurl+"';", the); the                 } +             } Else { A SetTimeout ("javascript:window.location.href = '"+Preurl+"';", the); the             } +  -         }Else{ $ window.location.href="'"+Preurl+"'"; $         } -     </scrpt> -     </html>

According to the JS code to see

And the operation of cookies.

It's automatically refreshed again.

What the hell is going on here?

Studied for half a day and didn't understand

Mostly I don't know how it's going to happen.

The browser shuts off, and he's all of a sudden.

Next time I don't know when we'll meet.

And recently, no matter what the news website, will be inexplicably added "Browse more information" Such a button in the back of the article

I always thought it was the news site, and later found not, because no matter what news site, the back is the same

and can close

Who has encountered this kind of problem, come to answer the answer.

Browsers do not support JavaScript, please refresh the page manually!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.