logoSunil Mohan Adapa’s Blog


Bad Javascript

Posted in Random by Sunil Mohan on the January 19th, 2005

Malicious javascripts can do a lot of unwanted things. I was just brushing up my javascript and suddenly realised this. Earlier, I thought the browser imposes good enough restrictions on javascripts.

As an example, the following code has made my firefox non-responsive for quite some time

<html>
<head>
<title>Bad Page, Don’t Visit</title>
<script language="javascript" type="text/javascript">
for(i=0; i<50000; i++)
{
    document.write("I want to write a lot of junk to this page.<br />");
}
</script>
</head>
<body>
</body>
</html>

Leave a Reply

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a