var menu2=new Array()
menu2[0]='<a href="help.htm#anchor1">Registration</a><br>'
menu2[1]='<a href="help.htm#anchor2">Agency Setup</a><br>'
menu2[2]='<a href="help.htm#anchor3">Staff User Names</a><br>'
this javascript is used inside a frame at the top of my page.
How can i make the page the links go to (help.htm) open in the main window and not the small frame at the top?
This code works for another button in the frame:
onclick="parent.main.location.href='airbook.asp';"
how can this be added into my javascript?
my whole code:
<script type="text/javascript">
var menu2=new Array()
menu2[0]='<a href="help.htm#anchor1">Registration</a><br>'
menu2[1]='<a href="help.htm#anchor2">Agency Setup</a><br>'
menu2[2]='<a href="help.htm#anchor3">Staff User Names</a><br>'
</script>
<tr bordercolor="#AEBDE5">
<td width="128" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='airbook.asp';" onmouseover="fadeImgend2(0)" onmouseout="fadeImg2(0)">Flights</td>
<td width="128" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='bookings.asp'; " onmouseover="fadeImgend2(1)" onmouseout="fadeImg2(1)">Bookings</td>
<td width="128" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.main.location.href='admin_login_fo rm.asp';" onmouseover="fadeImgend2(2)" onmouseout="fadeImg2(2)">Admin</td>
<td width="129" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="return dropdownmenu(this, event, menu2, '200px');" onmouseover="fadeImgend2(3)" onmouseout="fadeImg2(3);delayhidemenu()">Help</td>
<td width="129" align="center" style="border:1px solid #999999;cursor:hand;background-color:#003366;text-align:center" onclick="parent.location.href='logout.asp?logOut=t rue';" onmouseover="fadeImgend2(4)" onmouseout="fadeImg2(4)">Logout</td>
</tr>
www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt