I'm using the script below to bring up a print dialog box. Can anyone tell
me how when this is clicked it brings up the print dialog box and closes the
page it was launched from? I tried adding in another onclick event to close
the window but it didn't work (although my code may not have been
correct)... TIA
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (window.print) {
document.write('<form> '
+ '<input type=button name=print value="Print Report" '
+ 'onClick="javascript:window.print()"> </form>' );
}
// End -->
</script>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists