robertsont
08-13-2004, 10:46 AM
Loading an HTML fole offline. Is it possible to write an html file that, when it is loaded in the traditional fashion, i.e. double clicked (:-)!) either fails to load or returns a dhtml popup that informs the user to close the file. However when the file is loaded from within a window using a script like that below loads normally?
Regards,
Tom
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Hoop Hooper (hooper119@aol.com) -->
<!-- Web Site: http://www.angelfire.com/pa3/muddas -->
<!-- Modified: Larry McClurg (larry@honeybells.com) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
// Thank you Larry McClurg for the cross-browser fix
function whatFile() {
window.location= 'file:///' + document.form1.cmuds.value;
}
// End -->
</script>
Regards,
Tom
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Hoop Hooper (hooper119@aol.com) -->
<!-- Web Site: http://www.angelfire.com/pa3/muddas -->
<!-- Modified: Larry McClurg (larry@honeybells.com) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
// Thank you Larry McClurg for the cross-browser fix
function whatFile() {
window.location= 'file:///' + document.form1.cmuds.value;
}
// End -->
</script>