How to change the src (url) of a IFrame using JavaScript

No Comments
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.

Last Updated On March 20, 2018

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link