开发者

Grab html content from another window?

开发者 https://www.devze.com 2022-12-21 16:44 出处:网络
Is there a way (using flash) to grab the raw html from another browser frame? I\'d like the following sequence:

Is there a way (using flash) to grab the raw html from another browser frame? I'd like the following sequence:

  1. Launch my window from www.mysite.com/test
  2. Laun开发者_如何学Cch window from another site www.yousite.com, which has content I want to grab.
  3. Let my window grab the raw html content from the other window.

I doubt this is possible because it could be used for dastardly purpii, but just wanted to check.

Thanks


Solely via flash, no. However you could use ExternalInterface and some javascript to do it, though you will run into some restrictions depending on the browser. If the other window is from the same domain then you're probably fine, but if it's something completely different then XSS protection will probably kick in and block it.

0

精彩评论

暂无评论...
验证码 换一张
取 消