I need your urgent help - Keeping a JS menu open to diagnose CSS

Hi, I don’t know what is the best way to phrase this in English but my problem is that I have a click-to-open Javascript menu.

The menu has links, but the a tags are set to color: white and the background is also setted to something similar to White and I can barely see what the link is…

Now, I would have gladly mark the link with the inspection tool of my browser but each time I leave the menu scope with the mouse to click the inspection tool — They menu dissapears.

I tried to hold shift/alt in the keyboard thinking it might help to keep it open but it still being closed…

Do you know a to keep it open so I could diagnose the menu links easy ? Thx,

That is a very interesting method but not one that
I would advise beginners to use. :mask:

Can you give us a link to the site in question?

This will enable members to apply some rather more
appealing methods to resolve your problem. :sunglasses:

coothead

1 Like

Inspect the element as usual. It will disappear when you un-hover it, but it will remain focussed in the dev tools nevertheless (unless you’re actually removing it from the DOM). You can then simply show it again by setting it to display: block; (or whatever is your style to show it) for styling purposes. Alternatively, just comment out the part that hides the menu in your JS.

The menu is opened only when I click a single click on its button. When I leave its scope it just vanishes.

I can do this while the dev tools are open offcourse but nothing is being inspected at the time.

We’d really need to see a live sample or the code.

Hi Benos,

when you are debug your code , you do simple javascript alert(“Hi”) then close javascript tag , after try to debug using browser console .

Other wise take screen shot video link and share with us we will see ,
Lots of video tools are there you can download it free and use : Jing is a software to use to take screenshot and video.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.