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!