How to open external link from callback?

Hey, everybody! Can I somehow open an external link in a new browser tab using the callback code? Using the “html.A” component is not a solution for me. Since the user himself has to click on the link. I need to do some calculations before opening an external link.