About 3,340,000 results
Open links in new tab
  1. javascript - How to add a custom right-click menu to a webpage?

    If my intention is for the menu items to show a popup going to a URL, would wrapping the menu item HTML tags in <a> tags be the way to go for that, would it be more common to write JS code that makes the popup happen on click?

  2. How to create a menu with DOM and Javascript? - Stack Overflow

    Dec 2, 2012 · While you could use JavaScript to generate a menu on each page, it is a much better solution to use a server-side language to do this. Some of the fallbacks of a JavaScript-based approach: browsers with JavaScript disabled will not be able to see the menu; most search engines will not execute JavaScript and may not be able to spider your whole ...

  3. javascript - Multiple dropdown menus using same JS code - Stack …

    JavaScript/jQuery 2 dropdown menus with the same select option on page load. 0. Two Drop Down Menus. Hot ...

  4. How can i make a list menu "collapsible"? - Stack Overflow

    Apr 15, 2013 · As you can see in the jsFiddle, all menu items, when clicked show some text in another div. I put that there just in case it was be needed for further javascript help. What i want is to have all .sub menus collapsed and when i mouseover one of the main ones, it expands the corresponding .sub items so user can see. Thanks!

  5. javascript - JS dropdown menu best practice - Stack Overflow

    Nov 11, 2017 · But for user experience, you should better go with javascript in order to add an delay to close, since the user may not go directly one element after another: Example: user hovers on the button, the dropdown is displayed but then goes outside of the button instead of going through the right side of the button where the dropdown and the button ...

  6. javascript - Is there a simpler way to make this expandable menu ...

    Apr 13, 2014 · I want to make an expandable menu, with three or more items. When one of these items is clicked on, it expands to show an &lt;ul&gt; that is display: hidden beneath it.

  7. JavaScript rollover menu - Stack Overflow

    Mar 28, 2012 · I am new to JavaScript and I wanted to try and make a simple rollover menu for a webpage that has images that change when you rollover with your mouse. I keep running into problems: the rollover images appear, but they are all going into the same spot.

  8. javascript: dynamic drop down menu values - Stack Overflow

    Dec 10, 2013 · I used Javascript to create a dropdown menu. Then, if the user chose fruit in the main dropdown menu, I created "fruit" options, and if the user chose vegetables in the main dropdown menu, I created "vegetable" options.

  9. javascript - Are CSS-only drop-down menus really workable

    May 30, 2012 · These are issues that menus in native apps try very hard to avoid. Same goes for well-behaving Javascript menus. This makes using a menu that isn't "well-behaved" very frustrating. While it's certainly possible to make a JS menu that has the same problems, I don't believe it's really possible to solve them with CSS alone.

  10. How do I clear all options in a dropdown box? - Stack Overflow

    Jul 29, 2010 · @AdamIngmansson I find it puzzling when people denigrate the use of JQuery. I'd use a method like this on the assumption that the engineers behind JQ have done all sorts of tests to find the best, fastest and above all most reliable means of doing a given (utility) task.

Refresh