微软利用Form和JavaScript进行web下载的代码
<div id=”quickInfoHeader”><form type=”get” id=”quickCheck” name=”quickCheck” onsubmit=”javascript: document.getElementById(‘btnDownload’).disabled=true; setTimeout(‘document.getElementById(\’btnDownload\’).disabled=false’, 5000); if (g_IsIE) {window.open(‘http://download.microsoft.com/download/e/d/9/ed9b7861-4e43-4c62-a007-4e93aa109602/WindowsXP-KB936929-SP3-x86-CHS.exe’,null,’toolbar=0,location=no,directories=0,status=0,scrollbars=yes,resizable=1,width=1,height=1,top=0,left=0′);}” action=”info.aspx”><input type=”hidden” name=”na” value=”41″><input type=”hidden” name=”p” value=”0″><input type=”hidden” name=”u” value=”thankyou.aspx”><input type=”hidden” name=”SrcDisplayLang” value=”zh-cn”><input type=”hidden” name=”SrcCategoryId” value=””><input type=”hidden” name=”SrcFamilyId” value=”5b33b5a8-5e76-401f-be08-1e1555d4f3d4″><input type=”hidden” name=”f” value=”f”><input type=”hidden” name=”familyId” value=”5b33b5a8-5e76-401f-be08-1e1555d4f3d4″><input type=”hidden” name=”displayLang” value=”zh-cn”><script type=”text/javaScript” language=”javascript”>document.write(‘<input type=”hidden” name=”oRef” value=”‘ + document.referrer.replace(/”/gi,”) + ‘” />’);</script><input id=”btnDownload” type=”submit” value=”下载”></form><div>