try: ( " " ),
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script >
$(document).ready(function(){
$('a#save').click(function() {
if (!!window.ActiveXObject) {
document.execCommand("SaveAs");
} else if (!!window.netscape) {
var r=document.createRange();
r.setStartBefore($("head")[0]);
var oscript=r.createContextualFragment('<script id="scriptid" type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"><\/script>');
$('body').append(oscript);
r=null;
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
saveDocument(document);
} catch (e) {
} finally {
$("#scriptid").remove();
}
}
return false;
})
})
</script>
</head>
<body>
<a href="#" id="save">save the document</a>
</body>
</html>