Hi,
I have just created a function where when the user chooses a field from the drop down menu, it will take them straight to the site. The code was successfully compiled but the problem is how can I open the info in a different window rather than the same window.
Thank you.
dip
I have just created a function where when the user chooses a field from the drop down menu, it will take them straight to the site. The code was successfully compiled but the problem is how can I open the info in a different window rather than the same window.
Code:
<script language="JavaScript">
function SelectIt(){
if (document.Links.Select.options[document.Links.Select.selectedIndex].value != "none"){
location = document.Links.Select.options[document.Links.Select.selectedIndex].value}
}
</script>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<center><h2>Resources booking</h2>
<br>
<table width="500" border="0" cellspacing="6" cellpadding="0">
<tr>
<td nowrap>
<form name="Links">
<div align="right"> <font face="Arial, Helvetica, sans-serif" size="2">
<b>Type of Booking :</b></font></div>
</td>
<td><font size="2"><cfoutput>
<select NAME="Select" onchange="SelectIt()" size="1">
<option value="none">[Select A Link] </option>
<option VALUE="grid1_new2.cfm">conference room</option>
<option VALUE="notebook_index.cfm">notebook</option>
<option VALUE="projector_index.cfm">projector</option>
<option VALUE="book.cfm">Books</option>
<option VALUE="grid1.cfm">CD</option>
</select></cfoutput>
</font></td>
</tr>
</body>
</html>
Thank you.
dip