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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:51:48+00:00 2026-05-17T18:51:48+00:00

Goal When the user clicks an element (with class="menu" ), the default action should

  • 0

Goal

When the user clicks an element (with class="menu"), the default action should not be executed. The user should be presented with a menu with options. When an option has been clicked, then the default action should be executed.

Problem

It’s very problematic to stop the original click event in the first place, because it seems impossible to restore "default behavior" after that – is there a way to just delay the event until the user clicks a menu item?

Example

What i want to happen: Click a link. A menu is appended to the body. Click a menu option. The default behavior for the original click is now executed (which means triggering the click event of the originally clicked link and redirection to example.com).

jsFiddle

HTML, JS and CSS here:
http://jsfiddle.net/arex1337/Tjwmx/

PS: If you want to know what I need the functionality for, here are some hastily and badly written thoughts about the application I have in mind: www. scribd.com /doc/39573220/MyJsApp

  • 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-17T18:51:49+00:00Added an answer on May 17, 2026 at 6:51 pm

    This is not possible; you’ll need to simulate the default behavior in code.

    You can set location.href to the link’s href.

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

Sidebar

Related Questions

My goal is that when the user clicks on the <div class=title> , the
My goal: the user clicks a button. From the button pops up a two-level
My goal is to have a jQuery datepicker pop up when the user clicks
My goal is to have one element on initial load, this element should have
My goal: each time a user selects text, and clicks a button, that text
Goal When a user clicks the button, the div in question will: slide down
So my goal is once a user clicks on the item from the dropdown
My goal is to open a new window when the user clicks on the
My goal is to let the user click on a specific location on a
Goal: Once i click on the start button on my user interface, i currently

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.