1

Is there any actual way to trigger a click on given X & Y coordinates? These coordinates will be in an external iframe

What I want to do is put specific buttons when these buttons will be clicked, it will trigger a click event given x & y coordinates within iframe.

I tried code here, even though it says not cancelled still no success.

Revenant
  • 2,942
  • 7
  • 30
  • 52
  • Possible duplicate of [How to simulate a click by using x,y coordinates in JavaScript?](http://stackoverflow.com/questions/3277369/how-to-simulate-a-click-by-using-x-y-coordinates-in-javascript) – Mark C. Nov 02 '15 at 20:57

1 Answers1

3

I believe browser security restrictions would prevent this from being possible especially if the iframe is loading a different domain.

kcollins02
  • 81
  • 5
  • Well, I thought so, I just wanted to give it a shot. I don't want to get any elements from that `iframe`, I just want to trigger a click event. It seems not possible. – Revenant Nov 02 '15 at 21:01