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 656937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:46:08+00:00 2026-05-13T22:46:08+00:00

I am attempting to prevent default anchor behavior in Safari using the jQuery library.

  • 0

I am attempting to prevent default anchor behavior in Safari using the jQuery library. Unfortunately, the standard techniques of returning false or using event.preventDefault() do not seem to be working in Safari.

Could anyone help me with this issue?

The code I’m working with is like this:

$('#main .green-tabs a').live("click",function(event){
                    $('.green-tabs a').removeClass('active');
                    $(this).addClass('active');
                    event.preventDefault();
                    var that = this;
                    return LolPage(event,that);});
  • 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-05-13T22:46:08+00:00Added an answer on May 13, 2026 at 10:46 pm

    Having the handler return false works for me in Safari and FF and Chrome. See my test page here: http://gutfullofbeer.net/bind.html and it also works if I have the handlers call “preventDefault” instead of just returning false.

    The “LolPage” function is left out of your question, and I have to wonder whether that might be of great importance here.

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

Sidebar

Related Questions

I am attempting to overwrite a core jQuery event, in this case the keydown
I'm attempting to use the key up event to hijack the event and prevent
I'm attempting to upload a file asynchronously using HTTP POST and jQuery, but I'm
I am attempting to prevent the deletion of a Row for my GridView like
So, I've spent countless hours attempting to prevent a slideshow within a div or
I am attempting to create a jQuery plugin for my own use that can
I am attempting to implement some very basic debugger protection to prevent kids from
I am attempting to parse an XML file using python expat. I have the
I'm attempting to customise the form layouts using Twig in symfony2. I am aiming
I'm currently using a WebBrowser control in a C# WinForms application, and attempting to

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.