Library code snippets
Set the target frame of a form
By Kiran Pai, published on 26 Feb 2002
Frames are to be avoided whenever, wherever possible, and I always manage without them. However, if you want the output of a form to be pointed to a different frame or window, you can use the following HTML. The basic thing to note is that you set the Target property of the HTML form.
<HTML>
<FRAMESET COLS="20%,*">
<FRAME SRC="leftindex.html" NAME="Left frame" >
<FRAME SRC="rightindex.html" NAME="Right frame">
</FRAMESET>
</HTML>
Below is the source of leftindex.html
<HTML>
<BODY>
<FORM NAME="Myform" METHOD=GET
ACTION="http://www.kiranpai.com/servlet1" target = "Right frame">
<INPUT TYPE=SUBMIT VALUE="Clicking in left frame but Output in Right frame">
</FORM>
</BODY>
</HEAD>
Related articles
Related discussion
-
A large number of corporate websites for sale, cheap
by manypeopledesign (0 replies)
-
$200 Website Design and Development
by manypeopledesign (1 replies)
-
Dallas Interactive Marketing & Internet SEO SEM October Meetup
by dsafmx (4 replies)
-
Can I design web site by using ASP.net
by pradeepfusion (1 replies)
-
Online Freelance Jobs for Programmers
by getafreelancer02 (0 replies)
Related podcasts
-
Top Web Design Mistakes
Pete LePage is Product Manager of Internet Explorer Developer Division and he doesn’t want your web site to stink. Sharing from his talk given at TechEd 2008, Pete highlights 10 common web design mistakes and tells you how you can bypass the same blunders. Pete also tells us how future features o...
This thread is for discussions of Set the target frame of a form.