you can try giving the window.open a name then reference the name in your
function then set the name.target, or set the target in the head of the
document using th e "<base target=[framename]>"
var newWindow = window.open(this.options[this.selectedIndex].value
-----Original Message-----
From: TMorrison [mailto:tpmfxe@e...]
Sent: Tuesday, July 24, 2001 6:59 PM
To: javascript
Subject: [javascript] Targeting frames using a drop down
Not sure if the following can be accomplished, any suggestions?
I'm working on a drop down that links to various internal and external
sites and I need to control the frame in which the link applies. Based on
the option selected it should target frames such as main, left, right,
_top, _blank. The drop down is located on a .asp page hosted on a IIS 4
box.
My drop down feeds from a database, the database table holds url, target,
name, etc., and I'm using the following:
<SELECT NAME="ITLinks" SIZE=1 onchange="window.open(this.options
[this.selectedIndex].value,'main')">
which works if the target is always going to be "main" but its not.
Your time in researching is appreciated.
tpm