js:
var
userAgent = navigator.userAgent,
isIE = /msie/i.test(userAgent) && !window.opera,
isWebKit = /webkit/i.test(userAgent),
isFirefox = /firefox/i.test(userAgent);
var url = jQuery("#xuwanting")[0].src;
if(isIE){
n==0?new function(){frames("savelocals").location=url,n=1}:null;
document.all("savelocals").readyState!="complete"?setTimeout(savelocal,100):so();
function so(){frames("savelocals").document.execCommand("SaveAs"),n=0};
}
jsp:
<iframe src="" name="savelocals" id="savelocals" style="width:0;height:0"></iframe>