Just need a little extra to make this iframe refresh just once

Hi–

I have found a neat trick to refresh an iframe in an html page, but I just need one little twist to make it work just right. I would like to make the iframe content refresh just once, no matter how many times the link is clicked…

Right now, I have this in the head:

<script type=“text/javascript”>
function refreshIframe(el) {
var f = document.getElementById(el)
var rsrc = f.src
f.src=“about:blank”
f.src=rsrc
}
</script>

And this is the link which, when clicked, refreshes the iframe every time it is clicked:

<a href=“#page_7c” onclick=“refreshIframe(‘test’); return false”>

“test” is the id of the iframe.

I am sure how to make the iframe refresh just once the first time the link is clicked is really simple, but it escapes me… Many thanks!