I am trying to make a popup a window under an active window tab but when i do it opens a new tab and lose focus. What I am trying to do is open a new popup window/tab but the focus on the parent window remains
function displaypop() {
    var url = 'http://www.google.com';
    var windowName = "popUp"; //$(this).attr("name");
    var mypopup = window.open(url, windowName, "height=200,width=200");
    mypopup.blur();
    window.focus();
 }
 
    