From a CGI script, you can use the Window-Target HTTP header.
print <<'HTTP';
Location: $page
Window-target: new
HTTP
| [reply] [d/l] [select] |
Thank you, brian! That is the answer I am seeking!
| [reply] |
Use the HTML target attribute to the anchor tag that points to the script:
<a href="myScript" target="myWindow">myAnchor</a>
| [reply] [d/l] |
Just a few notes on style. While this technique should in many cases work, target is a deprecated attribute (not valid XHTML, so use a transitional DOCTYPE, or none). Opening new windows is generally frowned on due to its poor showing in UI usability testing. If you must, it's considered best practice to add a phrase near the link text indicating "opens in a new window", which you might do as part of the link's title attribute.
UPDATE: /me kicks self, mumbles. If I could vote I would obviously have to ++ brian for you know, actually answering the OP's question.
| [reply] |