답변 2개
채택된 답변
+20 포인트
답변에 대한 댓글 4개
q
qoqofh
4년 전
그래도 되지 않네요 ㅠㅠ
q
qoqofh
4년 전
Uncaught TypeError: Cannot read property 'click' of null 이렇게 뜨넹 ㅛㅠㅠ
�
마르스컴퍼니
4년 전
버튼 엘리멘트가 나온 뒤에 코드가 실행되도록 해주면 됩니다.
ex.
<button type="button" id="btn_hdcate">버튼1</butoon>
<script>
document.getElementById("btn_hdcate").click();
</script>
ex.
<button type="button" id="btn_hdcate">버튼1</butoon>
<script>
document.getElementById("btn_hdcate").click();
</script>
q
qoqofh
4년 전
아 해결했습니다 ㅎㅎ 감사합니다 ㅎ
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인