onClick image to open in new window

B

blumoosie

I have the following code:

//This is at the top before the </head> tag
<script>
goLocations = new Array(
"#",
"first_option.doc",
"second_option.doc",
"#" );
</script>

<form name="reviews">
<table border="0" cellpadding="0">
<tr>
<td> Export as:
<select name = "nextLoc">
<option value="0" selected>
-- Please
select an action --</option>
<option value="1">First Option</option>
<option value="2">Second Option</option>
</select>
</td>
<td>
<img src="../../images/go.gif" alt="Go" width="21"
height="20" border="0" valign="bottom" style="cursor:pointer"
onClick="location.href=goLocations[document.reviews.nextLoc.value]"
type="image"></td>
</td>
</tr>
</table>
</form>

----------------------------

When the user clicks on the image (a GO button), I want the .doc files
to open in a new window. Currently they open in the same window.

Any help would be appreciated! Thank you.
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top