In amp-script, i can access window
and document
variables but window.history
is undefined.
How can access window.history to use history.back().
Because i try to use <a href="javascript:history.back()"> Back </a>
. But it violates a validator of amp. I also have tried with AMP.goBack
.
How can i implement simplest the back function?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment