Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

iframe help

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:
<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>
 

Kelevra

Sponsor

What browser are you using when viewing it?

It works in: Fire Fox, Flock, Maxthon, AOL Explorer, IE7, Google Chrome, and Opera Browser(s).

Check your Browser Security settings. It may be blocking the "Active X" your code is using.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top