0

In Chrome for OSX the event is fired, in Chrome Win8 it is not. Is there a way to get this click? Actually for Chrome Win8 I don't get ANY click or onmousedown events. Even when I set:

document.onmousedown=function(){...}

if the mousedown is performed over the webplayer, no event fires. I would like a javascript user initiated event to fire when a user clicks on the webplayer. Is there a way to do this?

Steven
  • 166,672
  • 24
  • 332
  • 435
Dave Schile
  • 5
  • 1
  • 3
  • 1
    Keep in mind that the Unity Web Player will consume the click. I don't know if there's a way to propagate that down. Why not do the same functionality in Unity and have it fire off Javascript? Unity can detect the click, flag that it's now in focus, and do `Application.Eval()` on any javascript you need. – Brian Jew Nov 18 '13 at 18:37
  • Once you allow Unity run the javascript via Application.ExternalEval() or Application.ExternalCall(), you lose the "user initiated" aspect of the event. Therefore, a window.open() will pop-up a new new window, or be blocked by the browser, as opposed to open a new tab. – Dave Schile Nov 19 '13 at 19:27
  • 1
    Yup, so if you want a user initiated click, you need dom elements that aren't overlapping with the web player. – Brian Jew Nov 20 '13 at 00:27

0 Answers0