stickers
08-16-2010, 03:33 PM
Hi,
How do I set the src of the iframe to equal the variable, in the html body?
I am working with 2 files and I am trying the following - no success!
The first file redirects the user from one page to another.
file.html
______
<div align=center>
<form id=url type=get action=file.asp>
<input type=text name=URL size=30>
<input type=submit name="url2" value="Enter Url">
</form>
</div>
file.asp
______
<html>
<head>
<script type="text/javascript">
document.write('<iframe src="' + url2 + '"></iframe>');
</script>
</head>
<body>
<iframe id="iframe1" width="800" height="600" src="url2" APPLICATION="yes"></iframe></div>
</body>
</html>
Thanks!
Stickers :D
How do I set the src of the iframe to equal the variable, in the html body?
I am working with 2 files and I am trying the following - no success!
The first file redirects the user from one page to another.
file.html
______
<div align=center>
<form id=url type=get action=file.asp>
<input type=text name=URL size=30>
<input type=submit name="url2" value="Enter Url">
</form>
</div>
file.asp
______
<html>
<head>
<script type="text/javascript">
document.write('<iframe src="' + url2 + '"></iframe>');
</script>
</head>
<body>
<iframe id="iframe1" width="800" height="600" src="url2" APPLICATION="yes"></iframe></div>
</body>
</html>
Thanks!
Stickers :D