www.webdeveloper.com
Results 1 to 10 of 10

Thread: Links in drop menus

  1. #1
    Join Date
    Nov 2011
    Posts
    137

    Links in drop menus

    i have a couple links in drop down list, that i would like them to open in a new window, but can't seem to get them to. Can it be done?


    http://www.cjwebconsulting.com/newde...tinations.html

  2. #2
    Join Date
    Oct 2013
    Posts
    514
    Code:
    <select name="select" onchange="MM_jumpMenu('parent',this,0)">
    Probably can be changed to
    Code:
    <select name="select" onchange="MM_jumpMenu('blank',this,0)">
    blank may be new or something like that.

    This assumes that targ means "target" in this script:
    Code:
    <script type="text/JavaScript">
    function MM_jumpMenu(targ,selObj,restore){
    window[targ].location=""+selObj.options[selObj.selectedIndex].value;
    if (restore) selObj.selectedIndex=0;
    }
    </script>

  3. #3
    Join Date
    Nov 2011
    Posts
    137
    Sorry, that didn't work.

  4. #4
    Join Date
    Oct 2013
    Posts
    514
    There's this new thing called Google

    http://forums.adobe.com/thread/822820

  5. #5
    Join Date
    Nov 2011
    Posts
    137
    Thanks so much

  6. #6
    Join Date
    Nov 2011
    Posts
    137
    It didn't work, but when I google search it. Is what I have is a jump menu? or what's the right term for it?

  7. #7
    Join Date
    Oct 2013
    Posts
    514
    Some trial and error. Try this:
    Code:
    <select name="select" onchange="MM_jumpMenu(window.open(this.value),this,0)">

  8. #8
    Join Date
    Nov 2011
    Posts
    137
    Ok. this works, but not in safari browser. should i worry?

  9. #9
    Join Date
    Oct 2013
    Posts
    514
    That's your call. How many visitors do you get who use Safari? Does it work in iOS Safari? If the numbers are a significant percentage, does it really, really, really matter if it opens in a new window/tab vs. the same? I mean, is this a deal breaker? If so, maybe a new navigation design is necessary; if not ... well, not.

  10. #10
    Join Date
    Nov 2011
    Posts
    137
    thank you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles