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?
window?do_stuff()?do_stuff()calls ajax and returns HTML. Not much more than that. the return function populates something like$("#myDiv").html(data);