Roland Roland - 1 year ago 135
Javascript Question

How to refresh an IFrame using Javascript?

I have a webpage with an IFrame and a Button, once the button is pressed I need the IFrame to be refreshed. Is this possible, if so how? I searched and could not find any answers.

Answer Source
var iframe = document.getElementById('youriframe');
iframe.src = iframe.src;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download