chrome browser
버전 : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
onclick link
<!DOCTYPE html>
<html>
<body>
<script>
function winopen(url){
window.open(url, '_blank');
}
</script>
<p>Open link in a new window or tab: <a href="javascript:winopen('https://www.w3schools.com');" target="_blank">Visit W3Schools!</a></p>
</body>
</html>
O : https://www.w3schools.com window open
X : about:blank window open
javascript
scheme. Useonclick="winopen(url)"
oraddEventListener
to attach the event in JavaScript. You should also consider not using popups and the like. Let the users open URLs in the window they would like to open URLs in. It's much more user friendly. – Heretic Monkey