Html Help

CroftanatorCroftanator Join Date: 2002-10-05 Member: 1437Members
<div class="IPBDescription">Just a quicky ( hopefully :p )</div> I have a drop down box that redirects to other sites - but I want to open the sites in a new browser window (like <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1--><target="_blank"><!--c2--></td></tr></table><span class='postcolor'><!--ec2--> in regular linking). Currently the HTML below just opens it in the same window - can anyone make this happen please? Thx <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->

<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1--><form>
<select name="url" OnChange="location.href=form.url.options[form.url.selectedIndex].value" style="font-family:Verdana; font-size:10px; background-color: #303030; color: #FFC000;">
<option value="#">Title</option>
<option value="#">================</option>
<option value="http://www.whatever.com/"> - Site</option>
<option value="#">================</option>
<option value="http://www.whatever.com/"> - Site</option>
<option value="http://www.whatever.com/"> - Site</option>
<option value="#">================</option>
<option value="http://www.whatever.com/"> - Site</option>
<option value="http://www.whatever.com/"> - Site</option>
</select>
</form><!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

Comments

  • FlatlineUTDFlatlineUTD Join Date: 2002-11-08 Member: 7695Members
    edited March 2003
    I don't think you CAN have it target a new window with the way you've got it set up.

    You're using a form that's not really a form at all. The form tag needs action and method attributes to work correctly. You're throwing those out the window and using some quasi-javascript/HTML combo to pull your list off.

    I'll mess around with it, but I don't think I can get it working using the existing code you've written.

    <b>EDIT:</b>

    If you want it to work, you're either going to have to go all-HTML or all-javascript. Since I prefer javascript for things like this, give this link a shot: <a href='http://www.echoecho.com/jsdropdown02.htm' target='_blank'>http://www.echoecho.com/jsdropdown02.htm</a>
Sign In or Register to comment.