ManyCodes.com – codes & scripts Get free programming codes and tutorials!

28Jul/090

How to allow your website visitor to have the option to save the webpage he is on your website

Here is how you can allow your website visitor to have the option to save the webpage he is on your website.

Put the code below within your site's source code. If you dont know how to implement this code into your site, please goto how to implement the code to your website

Code:

<!-- this script is from www.manycodes.com -->
// IMPORTANT:
// If you add this script to a script-library or a script-archive
// you have to insert a link to http://www.javakhafan.9f.com
// right into the webpage where the script will be displayed.

function doSaveAs(){
 if (document.execCommand){
 document.execCommand("SaveAs")
 }
 else {
 alert("Save-feature available only in Internet Exlorer 5.x.")
 }
}
</script>
<form>
<input type="button" value="Save This WebPage" onClick="doSaveAs()"
</form>

<font face="Tahoma"><a target="_blank" href="http://www.manycodes.com/category/java/javascript-codes/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>



Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Webnews
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Ask
  • Facebook
  • Technorati
  • YahooBuzz