View Full Version : Frame script
dwarfer
12-21-2007, 03:19 PM
Is there a script which uses the basic frame layout but will have a text field in one which a user can put a URL and it will open the URL in the second frame?
Thanks
jscheuer1
12-21-2007, 08:22 PM
Frameset:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Conforming HTML 4.01 Transitional Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset cols = "35%, *">
<frame src ="launch.htm">
<frame name="main" src ="about:blank">
<noframes>
<body>
<!-- place alternative information for accessibility purposes here -->
</body>
</noframes>
</frameset>
</html>
launch.htm:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="#" onsubmit="this.target='main';this.action=this.elements[0].value;return true;">
<div><input type="text">
<input type="submit" value="Go">
</div></form>
</body>
</html>
dwarfer
12-21-2007, 08:43 PM
Cheers dude that is exactly what I was looking for.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.