codice:
...
<head>
<script type="text/javascript">
function salva() {
if(self.location.indexOf('http://')==0 || self.location.indexOf('www')==0) {
document.execCommand('SaveAs',true,'report.htm');history.go(-1);
}
}
</script>
</head>
<body onload="salva()">
...
ciao