Open New Window with Dropdown Form

G

Guest

How can I code a dropdown form to open the href in a new window (_blank)?
Here's an example of my form, but the "_blank" doesn't work (nor does the
"alt").

<form>
<select onChange="if(options[selectedIndex].value)
window.location.href=(options[selectedIndex].value)">
<option>Select a pest...
<option
value="http://www2.tltc.ttu.edu/thomas/classPet/1998/antfarm/ants_spices.htm#carpenter" alt="Redirect to Texas Tech University" target="_blank">Ants
<option
value="http://www.uky.edu/Agriculture/Entomology/entfacts/struct/ef614.htm">Roaches
<option
value="http://www.ipm.ucdavis.edu/PMG/PESTNOTES/pn7475.html">Silverfish
<option value="http://agnews.tamu.edu/stories/ENTO/termite.htm">Termites
</select>
</center>
</form>
 
G

Guest

I'd like that "completely new window" to not have a back button (greyed out)
and the original window with the table is also open on the user's machine.
 
S

Stefan B Rusynko

New browser windows opened with target="_blank" do not have a history so the back button is non-functional

--




| I'd like that "completely new window" to not have a back button (greyed out)
| and the original window with the table is also open on the user's machine.
|
| "Trevor L." wrote:
|
| > Works for me in IE6!!
| >
| > A completely new window opens. Using the back arrow returns to the opening
| > page
| >
| > --
| > Cheers,
| > Trevor L.
| > Website: http://tandcl.homemail.com.au
| >
| >
| > I choose Polesoft Lockspam to fight spam, and you?
| > http://www.polesoft.com/refer.html
| >
| >
| >
 
G

Guest

But it appears that functionality doesn't apply to the "option
value="http:whatever" in my form. Granted a new window opens, but you must
use the back button to return to the page. See the form on the right hand
side of http://www.ccpestcontrol.com. Any href link using the _blank works,
but not a link embedded in my form.
 
T

Thomas A. Rowe

You can set a frame target for the form, not the individual links. Right click on the form, then
Form properties, then select button to the right of the target frame field (which appears that you
can not enter anything, but you can) and select New Window (_blank)

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top