1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can i open a new tab using a combo box?

Discussion in 'BlackHat Lounge' started by rap8557, Jul 29, 2010.

  1. rap8557

    rap8557 Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 15, 2008
    Messages:
    1,082
    Likes Received:
    436
    How can i do this?

    I tried adding the code target="blank" but still it wont open to a new tab

    here's the code im using
    Code:
    <form name="redirect" id="redirect">
    <div align="center" class="style20"><span class="style21">Choose your country</span> 
    
    <select name="selection"> 
    <option value="http://website.com/brazil.html">Brazil</option>
    <option value="http://website.com/Canada.html">Canada</option>
    </select> 
    
    <input name="button" type="button" onclick="WinOpen();" value="ENTER"  target="_blank" /></div>
    
    </form></div>
    I need this badly for my LP
    thanks
     
  2. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    Try adding target="_blank" to the <form> tag because target is not supported by the <input> tag.
     
  3. rap8557

    rap8557 Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 15, 2008
    Messages:
    1,082
    Likes Received:
    436
    <form name="redirect" id="redirect" target="_blank">
    nope it didn't work
    this wont work either
    <option value="http://website.com/brazil.html" target="_blank">Brazil</option>
     
  4. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    May I see what you've got in your WinOpen() function?