Blank page with http://javascript:;

More
10 years 6 months ago #39951 by michmich229
Hello Guys,

I had a problem when i wanted to do a text separator that it didn't really look great so i put my item menu as an external URL with :http://javascript:; as the URL, but now i get a blank page when i click on it but i don't want it to do anything

Here is the website: www.glendona.com


Thanks per advance for your help !

Please Log in to join the conversation.

More
10 years 6 months ago #39952 by ivan.milic
Try:
Code:
http://javascript:void(0);

Please Log in to join the conversation.

More
10 years 6 months ago #39953 by michmich229
I tried but it's exactly the same :/

I found out that it works on every browser except Google Chrome i get about:blank page

Thanks

Please Log in to join the conversation.

More
10 years 6 months ago #39957 by ivan.milic
Try:
Code:
http://javascript:function(){return false;};

Please Log in to join the conversation.

More
10 years 6 months ago #39974 by michmich229
I've tried it and it is exactly the same :/

Thanks per advance !

Please Log in to join the conversation.

More
10 years 6 months ago #39981 by ivan.milic
Use just # for link and in index.php of template just above </head> add this:

<script type="text/javascript">

jQuery(document).ready(function(){
jQuery('a[href="#"]').click(function(e){
e.preventDefault();
return false;
});
});

</script>
The following user(s) said Thank You: michmich229

Please Log in to join the conversation.

Time to create page: 0.155 seconds
Powered by Kunena Forum