van helblaze
Member
I'm having running two iframes, I'm trying to get each one to act independently, but right now the forward and back buttons will work for both frame, if any one can help thanks in advanced.
code v
code v
Code:
<head>
<body>
<table width="100%" height="100%" border="0">
<tr>
<td>
<iframe id="left" height="95%" width="100%" frameborder="0" src="http://www.google.com"></iframe>
<br>
<input id="goput" type="text">
<input type="button" value="Go" onClick="document.getElementById('left').src='http://'+document.getElementById('goput').value+'';">
<input type="button" value="Back" onClick="history.go(-1);return true;"/>
<input type="button" value="Forward" onClick="history.go(1);return true;"/>
<input type="button" value="Home" onClick="document.getElementById('left').src='http://www.google.com'">
</td>
<td>
<iframe id="right" height="95%" width="100%" frameborder="0" src="http://www.google.com"></iframe>
<br>
<input id="goput2" type="text">
<input type="button" value="Go" onClick="document.getElementById('right').src='http://'+document.getElementById('goput2').value+'';">
<input type="button" value="Back" onClick="history.go(-1);return true;"/>
<input type="button" value="Forward" onClick="history.go(1);return true;"/>
<input type="button" value="Home" onClick="document.getElementById('right').src='http://www.google.com'">
</td>
</tr>
</table>
</body>
</head>