Skip to content

Cannot perform HTMLAnchorTag navigation via programmatic .click() #917

@ayobami303

Description

@ayobami303

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions