iframe refresh itself code example
Example 1: js reload iframe
document.getElementById('youriframe').contentWindow.location.reload()
Example 2: iframe reload parent
// iFrame and parent domains must match
parent.location.reload()
Example 3: iframe reload parent page
parent.location.href=parent.location.href
parent.location.reload()