Cross domain iframe position
I'm trying to find an easy way to get an external iframe's absolute position within the page. What I'm looking for is 开发者_Go百科something similar to the following:
$(window.parent.document).find("#iframe").position().top
but that works cross domain. Is window.postMessage function the only/best way to solve this or is there a simpler way?
精彩评论