hardwarephreak
[H]ard|Gawd
- Joined
- Jul 13, 2002
- Messages
- 1,283
Here is the code I am using...I need to add the ability to target a specfic frame?
how would I go about doing this with this code:
<script type="text/javascript">
<!--
// original code by Bill Trefzger 12/12/96
// [Get HomeSite at www.macromedia.com]
function go(){
if (document.selecter1.select1.options
[document.selecter1.select1.selectedIndex].value != "none") {
location = document.selecter1.select1.options
[document.selecter1.select1.selectedIndex].value
}
}
//-->
</script>
<script type="text/javascript">
<!--
document.write('<form name="selecter1">');
document.write('<select name="select1">');
document.write('<option value="none">Select your destination');
document.write('<option value="none">----------------------------');
document.write('<option value="#1">1');
document.write('<option value="#2">2');
document.write('<option value="#3">3');
document.write('<option value="#4">4');
document.write('</select>');
document.write('<input type="button" value="Go" onClick="go()">');
document.write('</form>');
// end hiding contents -->
</script>
how would I go about doing this with this code:
<script type="text/javascript">
<!--
// original code by Bill Trefzger 12/12/96
// [Get HomeSite at www.macromedia.com]
function go(){
if (document.selecter1.select1.options
[document.selecter1.select1.selectedIndex].value != "none") {
location = document.selecter1.select1.options
[document.selecter1.select1.selectedIndex].value
}
}
//-->
</script>
<script type="text/javascript">
<!--
document.write('<form name="selecter1">');
document.write('<select name="select1">');
document.write('<option value="none">Select your destination');
document.write('<option value="none">----------------------------');
document.write('<option value="#1">1');
document.write('<option value="#2">2');
document.write('<option value="#3">3');
document.write('<option value="#4">4');
document.write('</select>');
document.write('<input type="button" value="Go" onClick="go()">');
document.write('</form>');
// end hiding contents -->
</script>