지정된 div 내의 링크에 target =“_ blank”를 어떻게 추가합니까? 다음 코드가 있다고 가정 해 보겠습니다. google dsalkfnm sladkfm yahoo 이 경우 자바 스크립트는 target="_blank"div 내의 모든 링크에 추가 됩니다 link_other. JavaScript를 사용하여 어떻게 할 수 있습니까? /* here are two different ways to do this */ //using jquery: $(document).ready(function(){ $('#link_other a').attr('target', '_blank'); }); // not using jquery window.onload = function(){ var anchors = docum..