Override getFocus of external page loaded in iframe

I have multiple laoding pages in an iframe and one of them seems to be focusing as the page scrolls (on its own) to that spcific iframe.

Is there a way to override this?

+1


source to share


1 answer


The iFrame onFocus event can be overridden to prioritize focus. But be careful, because sometimes it doesn't work with Mozilla. Also, I would rather use the Div and display HTML inside the Div.



+1


source







All Articles