- Posts: 15
- Thank you received: 0
Blank page with http://javascript:;
-
michmich229
Inactive member - Topic Author
- New Member
Less
More
10 years 6 months ago #39951
by michmich229
Blank page with http://javascript:; was created 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 !
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 6 months ago #39952
by ivan.milic
Replied by ivan.milic on topic Blank page with http://javascript:;
Try:
Code:
http://javascript:void(0);
Please Log in to join the conversation.
-
michmich229
Inactive member - Topic Author
- New Member
Less
More
- Posts: 15
- Thank you received: 0
10 years 6 months ago #39953
by michmich229
Replied by michmich229 on topic Blank page with http://javascript:;
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
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 6 months ago #39957
by ivan.milic
Replied by ivan.milic on topic Blank page with http://javascript:;
Try:
Code:
http://javascript:function(){return false;};
Please Log in to join the conversation.
-
michmich229
Inactive member - Topic Author
- New Member
Less
More
- Posts: 15
- Thank you received: 0
10 years 6 months ago #39974
by michmich229
Replied by michmich229 on topic Blank page with http://javascript:;
I've tried it and it is exactly the same
Thanks per advance !
Thanks per advance !
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 6 months ago #39981
by ivan.milic
Replied by ivan.milic on topic Blank page with http://javascript:;
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>
<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.105 seconds