let btn = document.createElement("button");
btn.setAttribute ( "type", "button" );
btn.setAttribute ( "class", "button rounded" );
btn.setAttribute ( "onclick", "location.href='https://x.lsj.kr'" );
btn.setAttribute ( "id", row["TITLE"] );
btn.innerText = row["YY"]+' '+row["TITLE"];
document.querySelector( _div ).appendChild( btn );
//
document.querySelector("button[name=btnConfirm]").classList.add('none');
document.querySelector("button[name=btnConfirm]").classList.remove('none');
<html>
<head>
</head>
<body>
<a id="aUrl" href="#">LSJ.KR</a>
<script>
document.getElementById( 'aUrl' ).setAttribute( 'href', 'https://x.lsj.kr/' );
</script>
</body>
</html>