rbennitt
04-13-2007, 12:53 AM
I need to get the iframe to open when the test site is submitted. Please help me with this and thank you in advance for your time.
<html>
<head>
<title>Website Resolution Tester</title>
<script language="javascript">
function runURL () {
document.getElementById('newframe').src = document.myform.webadd.value
return false
}
</script>
</head>
<body>
<p> </p>
<form name="myform" method="post" action="tester2.html" onsubmit="return runUrl()">
Type the address of the site to test:
<input type="text" name="webadd">
<input type="submit" value="Click to Test">
</form>
<p>640x480</p>
<iframe id="newframe" src="" width="640" height="480" frameborder="no">
</iframe>
</body>
</html>
<html>
<head>
<title>Website Resolution Tester</title>
<script language="javascript">
function runURL () {
document.getElementById('newframe').src = document.myform.webadd.value
return false
}
</script>
</head>
<body>
<p> </p>
<form name="myform" method="post" action="tester2.html" onsubmit="return runUrl()">
Type the address of the site to test:
<input type="text" name="webadd">
<input type="submit" value="Click to Test">
</form>
<p>640x480</p>
<iframe id="newframe" src="" width="640" height="480" frameborder="no">
</iframe>
</body>
</html>