Use the window.open
method to open in a new window / tab
window.open(strUrl, strWindowName[, strWindowFeatures]);
Refer to MDN for details.
Here is an example
var windowObjectReference;
var strWindowFeatures = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes";
function openRequestedPopup() {
windowObjectReference = window.open("http://externalblog.blogger.com/externalpost", "Blogger Window", strWindowFeatures);
}
Call the openRequestedPopup()
method on whatever condition you want it to open. Alternately, if you already have the link while rendering the HTML, use the target="_blank" attribute in the anchor tag.