Software
Java
JavaScript
Delphi
HomeJavaScript

JavaScript: Invoking The SaveAs Dialog From A Web Page

Click to select the code.  Use Control-C to copy it to your clipboard. Help

Comments

See the instructions in the script for installation directions.  Try the popup demo (above) to exercise the script.

IE4+ browsers provide a document.execCommand() that can call certain system dialogs. This script demonstrates calling the SaveAs dialog to save a web page. The script includes onload interlocking and alternate alert messaging for non-IE browsers.

Note that the script can only be used to save the current page; that is, the page in which the script is included.

.

Copyright 2001 - 2012 by CodeFoot.com and OECCorp.
The 2012 Evolution™


LegalPrivacyCodeFoot.com is an OEC InterNET Group site.SupportNotices
CodeBrain.com BrainCode.com CodeFoot.com CodeBelly.com CodeLifter.com
PopUpWorks.com Droiddd.com etLux.com OECCorp.com
TrayApps.com DavidSosnowski.com MicroTicker.com