링크 코드를 수정하지 않고 iframe 내부에서 클릭 한 URL을 검색하려고합니다. 내 목표는 iframe 본문 밖에서 iframe에서 사용자가 클릭하는 URL을 얻는 것입니다.Iframe에서 링크를 클릭하면 URL을 가져 오는 방법은 무엇입니까?
document.write(location.href);
document.write(window.location.href);
document.write(window.location);
document.write(document.URL);
document.write(document.location);
iframe에 포함 된 콘텐츠를 수정할 수없는 경우 iframe의 소스 인 페이지 본문에 있어야합니다. –
iframe에 포함 된 콘텐츠를 수정할 수 없습니다. 그래도 가능합니까? – user2714639