<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Javascript Loop</title>
<style type="text/css">
.center
{
	position	: absolute;
	left		: 50%;
	width		: 500px;
	margin-left	: -250px;
	text-align	: center;
}
</style>
</head>
<body>
<div class="center">

<h1>Get out get, get out if you can...</h1>

<p>
I wonder how many browsers have a 'stop running java script' option in dialogs.
The code that gets executed is a very simple:
</p>

<pre style="border: 10px; background-color: #eeeeee; text-align: left; width: 500px">
while (1)
{
	window.alert("Get out get, get out if you can...");
}
</pre>

<p>
In Firefox and Internet Explorer, if you have multiple tabs open, you can't switch tabs either because the dialogs are 'modal'.
If you have 'restore sessions' in Firefox then you will keep loading this page for even more fun.
</p>

<script type="text/javascript">
<!--

while (1)
{
	window.alert("Get out get, get out if you can...");
}

// Hope you have Javascript script disabled ;)

-->
</script>

Originally put here on 1st of April 2005.

</div>
</body>
</html>
