Open evancz opened 7 years ago
Originally reported by @jinjor in https://github.com/elm-lang/html/issues/130.
There are some browser APIs that only work when called in direct response to a user event. Based on asking for examples on twitter, examples include:
clipboardData
beforeunload
audio.play()
video.play()
window.open()
document.execCommand('copy')
window.prompt()
If you have other examples from real life, please open a separate issue and explain your usage scenario / work around. I will organize things here.
Originally reported by @jinjor in https://github.com/elm-lang/html/issues/130.
There are some browser APIs that only work when called in direct response to a user event. Based on asking for examples on twitter, examples include:
clipboardData
beforeunload
audio.play()
andvideo.play()
on iOSwindow.open()
document.execCommand('copy')
window.prompt()
If you have other examples from real life, please open a separate issue and explain your usage scenario / work around. I will organize things here.