0
<span id="continue" class="a-button a-button-span12 a-button-primary"><span class="a-button-inner"><input id="continue" tabindex="5" class="a-button-input" type="submit" aria-labelledby="continue-announce"><span id="continue-announce" class="a-button-text" aria-hidden="true">
Continue
</span></span></span>
내 스크립트를 사용하여 클릭하려는 '계속'버튼이있는 페이지의 일부분 위에있는 HTML 위."계속"버튼을 클릭하면 어떻게 자바 스크립트를 작성할 수 있습니까?
그래서 자바 스크립트로 작성,이 버튼을 클릭하려고합니다. 하지만 내가 시도한 것은 아무것도 없다.
내 시도 대답은 :
는function() {
var goButton = document.getElementById("continue");
goButton.click();},
왜 작동하지 않는 이유는 무엇입니까? 도와주세요, 제발 !
을 - 그 고쳐 졌어. –
더 좋아지지는 않지만 selectChildElement 함수를 사용하여 스팬을 선택하고 입력 필드로 이동할 수 있습니다. 'var goButton = document.getElementById ("continue"); goButton.firstElementChild.firstElementChild.valueOf()' 출력 : ' ' – Tweek
줄 바꿈이 어디에서 진행되는지 잘 모르겠습니다. 마지막에'goButton.click();}을 넣어 둡니까? –