How do I refresh an iframe from a link on the parent page?
This button (posted by Marss on this forum) does exactly what I need. But I want this to happen from a link, not a button. The button Marss wrote:
The link I have now:
Can this be done? Please tell me how. (I write simple HTML and a little scripting.)
Micka
This button (posted by Marss on this forum) does exactly what I need. But I want this to happen from a link, not a button. The button Marss wrote:
Code:
<html>
<head>
<script type="text/javascript">
function Reload () {
var f = document.getElementById('iframe1');
f.src = f.src;
}
</script>
</head>
<body>
<iframe id="iframe1" height="200" width="300"
src="http://google.com"></iframe>
<br>
<input type="button" value="Reload" onclick="Reload();">
</body>
</html>
Code:
<a href="tshirt.html#bottom">1</a>
Micka
Comment