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 ifr开发者_运维问答ame 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.
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
.
精彩评论