Hi there,
I need to include 2 things in the following code.
1. I want to read the document from the location
location=" +
form.Benefits.options[ans].value;
I don't know how to insert this URL in javascript(/ forward slashes).
2. I want to open another window when I click "Go".
Please help me out.....thanks
I need to include 2 things in the following code.
1. I want to read the document from the location
location=" +
form.Benefits.options[ans].value;
I don't know how to insert this URL in javascript(/ forward slashes).
2. I want to open another window when I click "Go".
Code:
function productpage (form)
{
ans = form.Benefits.selectedIndex;
location="[URL unfurl="true"]http://www.xyz.com/career/Jobs/"[/URL] + form.Benefits.options[ans].value;
}
</script>
<form>
<div align="center"><center>
<p><select name="Benefits" style="font-family: Arial; font-size: 8pt" size="1">
<option value="Access_to_Computer_Systems_and_Data.asp">Access to Computers</option>
<option value="Accidents_and_Injuries.asp">Accidents and Injuries</option>
</select>
<input type="button" value="go!" onclick="productpage(this.form)"
name="productsubmit" style="font-family: Arial; font-size: 8pt">
</div>
Please help me out.....thanks