Set the target frame of a form

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.

<FRAME SRC="leftindex.html" NAME="Left frame" >
<FRAME SRC="rightindex.html" NAME="Right frame">

Below is the source of leftindex.html

ACTION="" target = "Right frame">
<INPUT TYPE=SUBMIT VALUE="Clicking in left frame but Output in Right frame">

You might also like...


Kiran Pai


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Beware of bugs in the above code; I have only proved it correct, not tried it.” - Donald Knuth