HTML / Javascript Problem

Soldato
Joined
17 Jan 2006
Posts
2,890
Location
Dundee
I am have a small site that one one page, when the suer has selected a name, they clikc the "Shw Me button and the relevant page will open. However I want he page that opens to have no menus, status bar, scroll bars etc.

This is that Javascript Code

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


<script language="javascript">

function openwindow()
{
window.open(document.form1.team.options[document.form1.team.selectedIndex].value);
};

</script>

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

This is the selecion HTML code


<form name="form1" id="form1">

<select name="team" size="6">

<option value = "squad-gm.html">Gary Melville</option>
<option value = "squad-dk.html">Dave Keogh</option>
<option value = "squad-gl.html">Graeme Lawrence</option>
<option value = "squad-ib.html">Ian Brunton</option>
<option value = "squad-af1.html">Alan McFie (SNR)</option>
<option value = "squad-af2.html">Alan McFie (JNR)</option>
<option value = "squad-cw.html">Craig White</option>
<option value = "squad-rw.html">Russell White</option>
<option value = "squad-mj.html">Micheal Jorgensen</option>

</select>
<br/>
<br/>

<input type="submit" value="Show Me" onclick="openwindow()">
</center>
</form>

I use to use this statment to open them

<input type="submit" value="Results By Week" onclick="window.open('resultsbyweek.html', 'newwindow', config='height=600,width=800, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no')">

But I cant get that to open with the Javascript

Any help really appreciated


TIA
 
Back
Top Bottom