This doesn't work:
<a href='javascript:void(0)' target='_blank' onclick='do_stuff()' >Open</a>
And neither does this
<a href='javascript:void(0)' target='_blank'onclick='window.open(do_stuff(), "_blank");' >View</a>
It might be clear what I am trying to do. I need to open up a new tab with the results of a JavaScript function. Is there another way I can try to do this?