<!doctype html>
<html lang="en">
<body>
<button id="search">Search with Google</button>
</body>
<script>
document.getElementById("search").onclick = function() {
var window = window.open("https://www.google.com", "_blank", "toolbar = yes, top = 500, left = 500,
width = 400, height = 400");
window.focus();
};
</script>
</html>