I am using below code for loading another web page url through button. This code is working correctly. Please suggest if we can open that url in new tab using window.location.href only?.
HTML:
<button class="float-left submit-button" id="myButton" type="button" target="_blank">Submit</button>
JS:
document.getElementById("myButton").onclick = function ()
{
var labelVal = $("#study").text().trim();
window.location.href= "/oGPGWW4EPjrLZZbl0_/analysis?file=/";";
};