window.open() in an iPad on load of a frame does not work

前端 未结 2 1889
故里飘歌
故里飘歌 2021-01-19 13:20

I am trying to modify a site that uses \"Morten\'s JavaScript Tree Menu\" to display PDFs in a frames set using the Adobe Reader plug-in.

On the iPad the frame is us

相关标签:
2条回答
  • 2021-01-19 13:41

    probably Safari tries to block popups. That means that when the user clicks, does an action, window.open works, but not when it "happens".

    0 讨论(0)
  • 2021-01-19 14:02

    You should also check your element and parent elements and make sure you do not have a ":hover" pseudo class on there. When you touch that element expecting a "click" event to occur, it will trigger the hover state on the element. If you touch again it will then fire the click event.

    0 讨论(0)
提交回复
热议问题