How do I make the main menu item containing subitems unclickable?

One of my main menu items has sub headers. I don’t want the primary link to be accessable. I just need it to contain the subheadings.


You could use a Custom menu item and add a dummy link as the URL, like javascript void
sorry I cannot add the final script in the message text

Let me know if you got it alright.