Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Web
Expertise: Beginner
Feb 20, 1999



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Directing CGI Output to Another Frame

A little-known attribute of the <FORM> tag is TARGET. This attribute can be used to direct the output of a CGI program to another browser window, or another frame in the same window.
<FORM METHOD="get" ACTION="myScript.cgi" TARGET="mainframe">
In the <FORM> tag, TARGET behaves the same way it does in an anchor tag. If the TARGET is a named frame or window, the output will be directed there. If it isn't, a new browser window will open. This can be useful for directing navigation from a popup window, or for maintaining directional flow in a framed site.
Steve Renaker
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date