How to refresh an IFrame using Javascript?

Solution 1:

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

Solution 2:

This should help:

document.getElementById('FrameID').contentWindow.location.reload(true);

EDIT: Fixed the object name as per @Joro's comment.