ampproject / ampproject/worker-dom
Cannot perform HTMLAnchorTag navigation via programmatic .click()
Open
- Dominant language
- TypeScript
- Stars
- 3.3k
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to use HTMLInputElement.click() within amp-script.
`const btn = document.querySelector('#mybutton');
btn.click()`
I am getting this error:
[amp-script] Uncaught TypeError: btn.click is not a function
Contributor guide
Assessment
This issue has not been assessed yet.