document.getElementById('iframe_id').src = 'newpage.html
iframe_id = The ID for the IFrame
newpage.html = The page that you want to load into the IFrame
Image Credits: Photo by Isis França on Unsplash.
document.getElementById('iframe_id').src = 'newpage.html
iframe_id = The ID for the IFrame
newpage.html = The page that you want to load into the IFrame
Image Credits: Photo by Isis França on Unsplash.