Click Overlay. Simulate Click using jQuery

I am imposing a hidden rectangle on my iframe. Then Discovery click inside my rectangular area. Then I take it (X, Y) and simulate a click inside the iframe on the same coordinate (X, Y).

This way, I will give the user a click on the hidden rectangular area in the iframe, since it is not possible to directly detect iframe events due to security issues.

This will get around this problem.

Some problem with my code. Unable to pass click on iframe at startup.

Here is Js Fiddle

http://jsfiddle.net/biggenius/Y8cVD/9/

Here you can click inside the box. http://jsfiddle.net/styson/PxcBs/1/

How to detect a click on Overlay? http://jsfiddle.net/biggenius/Y8cVD/13/

Here is a solution worth considering. http://stackoverflow.com/questions/10226448/detecting-click-inside-iframe-using-invisible-div/10226475#comment13139245_10226475

http://i.stack.imgur.com/fQiJT.png

+3
source share

All Articles