Reputation: 577
Folks,
We have one strange requirement where we want to disable double click inside the IFRAME.
The complication here is HTML response is coming from remote URL and we donot have any control over it. Is it possible to disable double click inside this IFRAME.
e.g.
Iframe src="http://removeserver/view.jsp" height="300px" width="300px">
Note : We already investigated and it seems because of cross side scripting we cannot do this.Basically we cannot access HTML elements of page remoteserver/view.jsp as it is coming from remote web site.
Any help will be highly appreciated.
Upvotes: 1
Views: 2623
Reputation: 4735
Empty div above iframe will disable any mouse actions on iframe content http://jsfiddle.net/uxUF8/63/
<iframe with="300" height="300" src="https://www.youtube.com/embed/OsOYg5gpS0s" ></iframe>
<div style="position:absolute;margin-top:-300px;width:300px;height:300px;border:1px solid red;" ></div>
another version allows you to scroll inside http://jsfiddle.net/uxUF8/62/
Upvotes: 2