This script can save text files, but can i chane it save image file such as gif or jpg ?


<script type="text/javascript">
function save()
{
var el = document.frames("saveFrame").document;
el.execCommand('SaveAs',false,'filename.txt');
}
</script>