Sorry about such a ridiculous question, I'm struggling with this simple task though.

I cannot get the following to open in a new window, can anyone help please?

Code:
<? echo ($title!='') ? "onclick=document.location='bs-bookings-edit.php?id=".$goid."'" : '' ?>
Thanks