I'm not sure, to be honest. Web programming is something I have only barely touched on. That said, if you are using Javascript eval, I would recommend looking for javascript snippets that open a new tab and see if you can get that working when passed to the eval
function.