amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Option to add javascript to an AMP page

Open gkteck opened this issue 10 years ago • 3 comments

Hi,

We are finding difficult to convert existing pages with javascript to amp page.

What is are the available option to add javascript to an AMP page ?

Please provide any available sample code for this.

gkteck avatar Apr 23 '16 21:04 gkteck

In future please ask questions on Stack Overflow: http://stackoverflow.com/tags/amp-html

This: https://ampbyexample.com/advanced/how_to_create_interactive_amp_pages/ is an example that shows how to factor out Javascript-reliant functionality into separate iframes.

adewale avatar Apr 24 '16 20:04 adewale

Closing as answered

ericlindley-g avatar Apr 25 '16 23:04 ericlindley-g

The link https://ampbyexample.com/advanced/how_to_create_interactive_amp_pages/ is unavailable. Can i get the working link ?

hereisethanhunt avatar Dec 19 '18 05:12 hereisethanhunt