Roland Roland - 24 days ago 6
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;