View Full Version : Need code to access a .html file inside a script
Mr. Mojo Risin
02-12-2003, 01:58 PM
but not open the file. I just want a script to access a .html file every time a form button is clicked, but I don't want the .html file to be opened and displayed. This is strictly for tracking the use of the script. I want to able to tell how often the form is used by looking at server logs to see how often the file is accessed.
thanks
Roy Sinclair
02-12-2003, 04:49 PM
<iframe id="hiddenFrame" style="display:none;"></iframe>
....
<input type="submit" onclick="document.getElementById('hiddenFrame').src='countpage.htm';return true;" />
This should do the trick but I haven't tested it. The key is having a hidden frame on the page where the page you want to be accessed can be loaded. Then it's just a matter of loading that page when the form is submitted.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.