function googleHome() { window.open('https://www.google.co.kr/', 'google', 'width=500,height=500'); } function googleHome2() { window.open('https://www.google.co.kr/'); }
<h1 onclick="googleHome()">구글 홈페이지1</h1> <h1 onclick="googleHome2()">구글 홈페이지2</h1>