Hi,
I've made a simple Iframe which replaces one text with another. This all works the way I want it to with a link. I want it to do the same except with a button. This is what I have. (the link below the </html> works, but I want it to be a button.) The buton I have doesnt work right.
</head>
<body>
<script language="javascript">
function newWordLink() { window.location ="iframe2.php";
window.target="_iframe.php"; }
</script>
<p><form name="myform">
<input type="button" value="New Word" onclick="newWordLink()"</form></p>
<iframe name=_iframe src=iframe.php width=300 height=300 frameborder=0 scrolling=no> </iframe>
</body>
</html>
<a target="_iframe" href="iframe2.php">link</a>
I've made a simple Iframe which replaces one text with another. This all works the way I want it to with a link. I want it to do the same except with a button. This is what I have. (the link below the </html> works, but I want it to be a button.) The buton I have doesnt work right.
</head>
<body>
<script language="javascript">
function newWordLink() { window.location ="iframe2.php";
window.target="_iframe.php"; }
</script>
<p><form name="myform">
<input type="button" value="New Word" onclick="newWordLink()"</form></p>
<iframe name=_iframe src=iframe.php width=300 height=300 frameborder=0 scrolling=no> </iframe>
</body>
</html>
<a target="_iframe" href="iframe2.php">link</a>