Roland Roland - 4 months ago 38
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.

var iframe = document.getElementById('youriframe');
iframe.src = iframe.src;