Advertisement
5_2007-2008 Internet/ Browsers/ HTML #176706

Force a Save File Dialog

This piece of code FORCES the user to save known file types (ie: *.mpg, *.gif, *.jpg, *.htm... you get the idea). Normally these (known file types) are opened in the browser, if you wish to bypass this feature in the browsers and allow the user to save a copy to their local computer without telling them to "right click" on the file and select "save target", this is the way. This code is REAL SIMPLE. I commented EVERY line so you know exacly what purpose it serves. If you have any enhancements to make to it, please let me know I'd love to see them. Please vote good or bad, 'cause I'd like to know.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine