JavaScript: location.href to open in new window/tab

I have a JavaScript file from a third party developer. It has a has link which replaces the current page with the target. I want to have this page opened in a new tab.

This is what I have so far:

if (command == 'lightbox') {

Can anyone help me out?

Best Solution
  '_blank' // <- This is what makes it open in a new window.