Hi,
Firstly I apologise for putting a javascript related question in here, but it is cf related too and I didn't know where to ask first.
I am trying to figure out how to get my page to print when it loads and then return to the page it was linked from without the user having to click on any back links.
The code I have at the moment is:
This is going back to the original page ok, but is not offering the browser print menu on it's way through.
How can I get the javascript to work before the cflocation tag whisks the user back to the other page?
Many thanks in anticipation
Sara
Firstly I apologise for putting a javascript related question in here, but it is cf related too and I didn't know where to ask first.
I am trying to figure out how to get my page to print when it loads and then return to the page it was linked from without the user having to click on any back links.
The code I have at the moment is:
Code:
<body onLoad="javascript:window.print();">
blah, blah, blah
<cflocation url="originalpage.cfm" addtoken="No">
</body>
This is going back to the original page ok, but is not offering the browser print menu on it's way through.
How can I get the javascript to work before the cflocation tag whisks the user back to the other page?
Many thanks in anticipation
Sara