Link to open Multiple URLS

Discussion in 'JavaScript' started by JoelBeasley, Aug 18, 2007.

  1. #1
    Hey, i need to fine a way to open multiple urls with 1 link.

    My javascript

    function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
    }


    My HTML

    <select name="jumpMenu" id="jumpMenu" onChange="MM_jumpMenu('parent',this,0)">
    <option value="_Client_list.php?a=return">Select A Form</option>
    <option value="_Client_view.php?{$row.1editlink}">Regular View</option>
    <option value="_Client_view_demo.php?{$row.1editlink}">View 3</option>
    </select>


    Basically i would like so that i can make it when someone click the dropdown menu and selects an option it can open multiple windows.

    Why? Well b/c it's inputting data into forms and rather than clicking the drop down, selecting a form and printing and doing that 3 times for 3 different forms, i'd rather be able to click the drop down have it open 3 windows and just click file print real quick.

    Thanks for all the help in advance.

    ~Joel
     
    JoelBeasley, Aug 18, 2007 IP
  2. ssanders82

    ssanders82 Peon

    Messages:
    77
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do a window.open() javascript call for each page you want to open. Be advised this may not work if the user has popup blockers. Also, you can do a window.print() to automatically open the print dialog...
     
    ssanders82, Aug 24, 2007 IP