0
我如何在ASP.NET刷新的iframe,我需要的iframe頁面加載工作每一次改變源代碼看到例如:變化源的iframe ASP.net
document.getElementById('frame1').setAttribute('src', 'Questionair.aspx');
每次我需要去「Questionair.aspx時間
頁面並執行網頁加載,在我這個代碼源變化和頁面加載執行一次 謝謝
我如何在ASP.NET刷新的iframe,我需要的iframe頁面加載工作每一次改變源代碼看到例如:變化源的iframe ASP.net
document.getElementById('frame1').setAttribute('src', 'Questionair.aspx');
每次我需要去「Questionair.aspx時間
頁面並執行網頁加載,在我這個代碼源變化和頁面加載執行一次 謝謝
您可以通過先設定重新加載iframe的來源‘SRC’屬性,然後調用location.reload方法:
document.getElementById('frame1').setAttribute('src', 'Questionair.aspx');
document.getElementById('frame1').contentWindow.location.reload(true);