Hi, there, I got problem with how to auto refresh web page in a iframe by click button.
This is my code. Hopes someone can help me!

<script type="text/javascript">
function refreshIframe(timeoutPeriod) {
    var ifr = setTimeout("location.reload(true);"timeoutPeriod).document.getElementsByName('Iframe')[0];
    ifr.src = ifr.src;


<button onclick="JavaScript:refreshIframe(2000);">Refresh Iframe</button>
<iframe name="Iframe" src="http://www.google.com/" style="width: 912px; height: 434px" target="_blank">
				Your browser does not support inline frames or is currently configured not to display inline frames.