Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Open drop down in a new window
Old 03-15-2006, 02:31 PM Open drop down in a new window
Spud In Disguise's Avatar
Super Spam Talker

Posts: 808
Location: UK... where else?
Trades: 0
Hey, can someone tell me how I can change this script so the page loaded from the drop down list opens in a new window?

Code:
<p align="left"><form name="AutoListBox">
<p><select name="ListBoxURL" size="1" language="javascript" onchange="gotoLink(this.form);">
<option value="connection.htm">Place 1 </option>
<option value="connection.htm">Place 2 </option>
<option value="connection.htm">Place 3 </option>
<option selected>-- Select a show to see the set list --</option>
</select></p>

<script language="JavaScript">
<!--
function gotoLink(form) {
   var OptionIndex=form.ListBoxURL.selectedIndex;
  parent.location = form.ListBoxURL.options[OptionIndex].value;}
//-->
</script>

</form></p>
__________________

Please login or register to view this content. Registration is FREE
- Fansite

Please login or register to view this content. Registration is FREE
- Blog
Spud In Disguise is offline
Reply With Quote
View Public Profile Visit Spud In Disguise's homepage!
 
 
Register now for full access!
Old 03-15-2006, 09:37 PM Re: Open drop down in a new window
Guerrilla's Avatar
Ultra Talker

Posts: 424
Trades: -1
HTML Code:
<script language="JavaScript">
<!--
function gotoLink(form) {
   var whereToGo = form.ListBoxURL.value;
   window.open(whereToGo,'','');
   }
   
//-->
</script>

<p align="left"><form name="AutoListBox">
<p><select name="ListBoxURL" size="1" language="javascript" onchange="gotoLink(this.form);">
<option value="connection.htm">Place 1 </option>
<option value="connection.htm">Place 2 </option>
<option value="connection.htm">Place 3 </option>
<option selected>-- Select a show to see the set list --</option>
</select></p>



</form></p>
__________________
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
Guerrilla is offline
Reply With Quote
View Public Profile
 
Old 03-18-2006, 12:07 PM Re: Open drop down in a new window
Spud In Disguise's Avatar
Super Spam Talker

Posts: 808
Location: UK... where else?
Trades: 0
cheers buddy, i got another answer though. cheers anyway
__________________

Please login or register to view this content. Registration is FREE
- Fansite

Please login or register to view this content. Registration is FREE
- Blog
Spud In Disguise is offline
Reply With Quote
View Public Profile Visit Spud In Disguise's homepage!
 
Reply     « Reply to Open drop down in a new window
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36945 seconds with 12 queries