2010-06-15 129 views
0

如何獲取iframe src包含不同域名的iframe的contentWindow.location? 我已經搜索了這個,但我發現像proxt的東西,所以我怎麼能得到iframe內的窗口的位置iframe src不在同一個域?如何獲取iframe的contentWindow.location,其中iframe src包含不同的域名?

+0

我不明白這個問題。拳頭你說,你試圖用iframe獲取窗口的位置,然後你說你嘗試獲取iframe中的窗口位置。你能獲得testpla html代碼嗎? – Kate 2010-06-15 12:33:56

回答

1

瀏覽器端XSS規則禁止在contentWindow.location中訪問和顯示外部URL。你不能這樣做。