HomeiOS DevelopmentExamine Javascript "oncontextmenu" occasion help within the Safari browser on iPhone and...

Examine Javascript "oncontextmenu" occasion help within the Safari browser on iPhone and iPad gadgets


Everyone knows that Apple has determined to make Safari compete for the coveted "artistic browser" award (ousting the defunct Web Explorer) by deciding, among the many many artistic and non-standard options undertaken, to "ignore" the oncontextmenu occasion on his iPhone and iPad gadgets, however I ask you all:

  1. For what masochistic purpose does the if( "oncontextmenu" in window ) take a look at nonetheless return a optimistic consequence on these gadgets (an actual misdirection)?

  2. Is there a "clear" strategy to verify if oncontextmenu is admittedly supported and triggered by the browser that’s not a fallback to an if( /iPad|iPhone|iPod/i.take a look at( navigator.platform ) ) type answer?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments