I'm so lame so I can't get it.

I'd like to call from javascript rendering of the current url when user agrees with it (confirm() method).
the onload() is included in 'print_report' action in applications actions directory. The 'tcpdf' directory is in htdocs.
If you can explain step-by-step, how can I do this?

Regards,
Peter
ps. sorry for any mistakes of my English