Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7724477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:41:57+00:00 2026-06-01T04:41:57+00:00

Can someone help me out with this one. I have a page, in which

  • 0

Can someone help me out with this one. I have a page, in which is a menu, which I am performing some js stuff on links containing the class ‘opener’.

Every link works great, except non-‘opener’ links (aka… external links), these seem to do nothing.

Can you tell me what I’m doing wrong here:
http://new.o7thwebdesign.com

if you click on ‘Test 1’, the page goes to an internal page as it should. (note, ‘External’ only exists on the home page, so you’ll need to click ‘Home’)

if you click on ‘External’ it does not do anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:41:58+00:00Added an answer on June 1, 2026 at 4:41 am

    In the script h.basic.js you have the following code:

    $('#menu li').click(
        function () {
            $(this).siblings().find('ul').slideUp('normal');
            $(this).siblings().find(".menu_arrow").attr('src', '/Images/sidebar_icons/right_arrow.png'); // Slide up all menus except the one clicked
            $(this).has('ul').find('ul').stop(true,true).slideToggle('normal'); // Slide down the clicked sub menu
            $(this).attr('class', 'current');
            var down = $(this).find(".menu_arrow").attr('src') == "/Images/sidebar_icons/right_arrow.png"
            $(this).find(".menu_arrow").attr('src', 
              $(".menu_arrow").attr('src').replace(down ? 'right_' : 'down_', down ? 'down_' : 'right_'));
            return false;
        }
    );
    

    The return false; prevents the default action of the event which was a click on a link. Try the following instead:

    $('#menu li').click(
        function (e) {
            $(this).siblings().find('ul').slideUp('normal');
            $(this).siblings().find(".menu_arrow").attr('src', '/Images/sidebar_icons/right_arrow.png'); // Slide up all menus except the one clicked
            $(this).has('ul').find('ul').stop(true,true).slideToggle('normal'); // Slide down the clicked sub menu
            $(this).attr('class', 'current');
            var down = $(this).find(".menu_arrow").attr('src') == "/Images/sidebar_icons/right_arrow.png"
            $(this).find(".menu_arrow").attr('src', 
              $(".menu_arrow").attr('src').replace(down ? 'right_' : 'down_', down ? 'down_' : 'right_'));
    
            return e.target.target == '_blank';
        }
    );
    

    The changed line being:

    return e.target.target == '_blank';
    

    That is a bit confusing but it looks at the target element of the event (The anchor being clicked) and then looks at it’s target property which is set using the target attribute of your <a> tag. If it is _blank then it returns true, otherwise it returns false. So links with target="_blank" will retain the default behaviour, while links without that will supress it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Perhaps someone can help me out with this one: I'm using a basic search
I was wondering if someone can help me out with this issue. I have
Okay, the specs have changed on this one somewhat. Maybe someone can help me
Can someone help me out on this. I have a problem with the return
Someone help me out. I have 2 Iframes and one container.aspx page 1) container.aspx
Hope someone can help me out with this problem I am having. I just
Can someone please help me out with a JavaScript/jQuery solution for this arithmetic problem:
Okay people, I'm sure someone has had this issue and can help me out.
I am hoping someone can help me out with a quick question I have
I have read this link How can we stop web page view after sign-out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.