Forum Moderators: open
If so, this is a pretty crude way to do it:
1) Put a
.txtin the same folder as the file and call it 'fileyes_DO_NOT_DELETE_THIS.txt' or something like that
2) In the txt file, type 'TRUE' or something to show that it is 'positive'
3) You can change the stuff in here, but this goes in your HTML doc:
<HEAD> <SCRIPT langauge="JavaScript"> function fileEyes() { if(window.frames.document.body.innerHTML!='TRUE')\\Is the .txt file there?{alert('You do have the file')}else{alert('You do not have our file.')}\\otherwise alert them } </SCRIPT> </HEAD> <BODY> <IFRAME SRC="S:\MyFile\file_eyes_DO_NOT_DELETE_THIS.txt" name='trueorfalse' style="display:none">Your browser cannot identify iframes. Please <a href="http://www.microsoft.com/windows/ie/downloads/critical/ie6sp1/download.asp">download one that can</a> </IFRAME> <br> <button onClick="fileEyes()">Do I have the File?</button>