Hi there,
Can somebody please fix the code bellow? I have 2 iframes and i want to reload them with the buttons bellow them.
Also, if it is easy, i wonder if you can make three more functions
: refresh, history+, history-
thank you!
<html>
<head>
<script type="text/javascript">
function Reload () {
var f = document.getElementById('iframe1');
f.src = f.src;
}
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><iframe name="iframe1" id="iframe1" height="200" width="300" src=" <td><iframe name="iframe2" id="iframe2" height="200" width="300" src=" </tr>
<tr>
<td><input name="button1" type="button" onClick="Reload();" value="Reload"> </td>
<td><input name="button2" type="button" onClick="Reload();" value="Reload"> </td>
</tr>
</table>
<p> </p>
</body>
</html>
Can somebody please fix the code bellow? I have 2 iframes and i want to reload them with the buttons bellow them.
Also, if it is easy, i wonder if you can make three more functions
: refresh, history+, history-
thank you!
<html>
<head>
<script type="text/javascript">
function Reload () {
var f = document.getElementById('iframe1');
f.src = f.src;
}
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><iframe name="iframe1" id="iframe1" height="200" width="300" src=" <td><iframe name="iframe2" id="iframe2" height="200" width="300" src=" </tr>
<tr>
<td><input name="button1" type="button" onClick="Reload();" value="Reload"> </td>
<td><input name="button2" type="button" onClick="Reload();" value="Reload"> </td>
</tr>
</table>
<p> </p>
</body>
</html>