I am working on an applescript together with javascript. I am totally new to javascript and I am struggling with a simple "submit" action of an input.
I tried the following standard line, but it's not working: do JavaScript " document.getElementByID('form-submit').click()
" in document 1
Could anyone help me out here? I read already somewhere that there could be an issue with the fact that the input is type=submit
. But I don' know how to handle this.
Thanks a lot! Carlo
The answer to your problem, @CarloP, is you used document.getElementByID
to get the element in the DOM. Instead, use document.getElementById
. Notice I changed ID
to Id
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.