iframe을 다시로드하고 다시로드하기 전에 이전 위치로 스크롤하려고합니다.Reload iFrame Success Function
var iframe_x=$('#the-frame').attr("xpos");
var iframe_y=$('#the-frame').attr("ypos");
$('#the-frame').attr("src", $('#the-frame').attr("src"));
document.getElementById('the-frame').contentWindow.scrollTo(iframe_x,iframe_y);
문제는 스크롤하기 전에 iFrame이로드되기를 기다려야한다는 것입니다. attr에 대한 'success'함수가 있습니까?
어떻게하면됩니까?
동일한 도메인이라면'document.getElementById ('the-frame')이 있습니다. onload = function() {code here; }' –