Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


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

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.

 

 

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