Vish
Vish

Reputation: 4492

escape an iframe based on whether the users mouse is over the iframe window

if the iframe window displayed is being seen then there is no problem but if the iframe window is set with 0px X 0px just to hide the iframe but load it, then redirect the iframe or not show it at all.

Also if something is loaded in an iframe or frame how can it be broken out of generally? I would use javascript.

Upvotes: 0

Views: 299

Answers (1)

ThiefMaster
ThiefMaster

Reputation: 318568

Use window.clientWidth and window.clientHeight to check the size of the window. If it's too small, break out using top.location = self.location.href.

Upvotes: 1

Related Questions