I have a problem in my website, I have build a menu that consist of javascript links, When i click on link from the menu, the page goes up, You can see it here:
I never saw it before, anyone have an idea?
Thanks.
This probably means you have a javascript error somewhere else, or you are using tags with an href of "#" and not using event.preventDefault() in your click method. I would check the console for javascript errors, or ensure your click event is using preventDefault.
ex:
$('a.neat-link').click(function(event){
event.preventDefault();
/* do your link stuff here and it should work */
})
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.