Используя приведенный ниже код, я могу открыть Bookmarklet ... Я хочу, чтобы он был по центру, но всплывающее окно всегда появляется в правом углу ... любые указатели оценены
<a class="btn btn-primary btn-block margin-bottom"
href='javascript:
(function()
{
var n = encodeURIComponent(location.href);
var i = encodeURIComponent(document.title);
var a=window;
window.open("https://MyUrl?url="+n+"&title="+i,"_blank","
toolbar=0,
menubar=0,
height=" + (screen.height / 2) + ",
width= " + (screen.width / 2) ,
left= " + (a.width() / 2) - (width / 2)",
top= " + (a.height() / 2) - (height / 2) +");
})(); void(0);'>Bookmarklet</a>