ImperialSpider
03-26-2005, 06:36 AM
I am trying to have a print button that would print a text document (rules.txt) without actually bringing up the text document in the browser. (not by my request, but someone I am helping build their site...so please, no "WHY" questions on this one 'cause, I don't know.)
I have no Idea of how to do this. This is some of what I have tried which has failed, so any help would be greatly appreciated...
<form>
<input type="button" value="Rules Printout" onClick="window.print(rules.txt)";>
</form>
and I also tried this...
<a href="javascript:window.printrules.txt()";><img src="rules.gif"></a>
Thanks,
Imperial Spider
I have no Idea of how to do this. This is some of what I have tried which has failed, so any help would be greatly appreciated...
<form>
<input type="button" value="Rules Printout" onClick="window.print(rules.txt)";>
</form>
and I also tried this...
<a href="javascript:window.printrules.txt()";><img src="rules.gif"></a>
Thanks,
Imperial Spider