D
d4rkn1ght
Hello!
How can I make this script I generated with HomeSite, open links in new
windows/tab instead of the same?
<script language="JavaScript" type="text/javascript">
<!--
// original code by Bill Trefzger 12/12/96
function go1(){
if
(document.selecter1.select1.options[document.selecter1.select1.selectedIndex
].value != "none") {
location =
document.selecter1.select1.options[document.selecter1.select1.selectedIndex]
..value
}
}
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
document.write('<form name="selecter1"><select name="select1" size=1>');
document.write('<option value=none>Test');
document.write('<option value=none>--------------------');
document.write('<option value="http://www.a.null">A');
document.write('<option value="http://www.b.null">B');
document.write('<option value="http://www.c.null">C');
document.write('<option value="http://www.d.null">D');
document.write('</select>');
document.write('<input type="button" value="Go" onclick="go1()">');
document.write('</form>');
// end hiding contents -->
</script>
I will like to keep this as simple as possible. I don't know anything about
JavaScript.
TIA
How can I make this script I generated with HomeSite, open links in new
windows/tab instead of the same?
<script language="JavaScript" type="text/javascript">
<!--
// original code by Bill Trefzger 12/12/96
function go1(){
if
(document.selecter1.select1.options[document.selecter1.select1.selectedIndex
].value != "none") {
location =
document.selecter1.select1.options[document.selecter1.select1.selectedIndex]
..value
}
}
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
document.write('<form name="selecter1"><select name="select1" size=1>');
document.write('<option value=none>Test');
document.write('<option value=none>--------------------');
document.write('<option value="http://www.a.null">A');
document.write('<option value="http://www.b.null">B');
document.write('<option value="http://www.c.null">C');
document.write('<option value="http://www.d.null">D');
document.write('</select>');
document.write('<input type="button" value="Go" onclick="go1()">');
document.write('</form>');
// end hiding contents -->
</script>
I will like to keep this as simple as possible. I don't know anything about
JavaScript.
TIA