js如何使得新打开的窗口居中

<a href="#" class="blue" onclick="window.open('/Content/service.html', '信息咨询与管理服务协议', 'width=' + 800 + ',height=' + 600 + ',left=' + (window.screen.width - 800) / 2 + ',top=' + (window.screen.height - 600) / 2 + ',resizable=no,status=yes,toolbar=no,location=no,menubar=no,menu=yes,scrollbars=yes')">《信息咨询与管理服务协议》</a>

原文地址:https://www.cnblogs.com/tnnyang/p/4692608.html