ameerulislam — 2013-02-04T22:32:42-05:00 — #1
Please note that it was found in vav links that had unordered lists like below.
<li class="current"><a href="index-2.html">Simple slider</a></li>
<li><a href="home_full_slider.html">Fullwidth slider</a></li>
picnictutorials — 2013-02-04T23:40:22-05:00 — #2
ameerulislam — 2013-02-04T23:46:26-05:00 — #3
ralphm — 2013-02-05T01:10:07-05:00 — #4
Delete it and forget you ever saw it. Inline JS is junk anyway, and has no business sitting in place of a proper URL.
felgall — 2013-02-05T01:16:26-05:00 — #5
ameerulislam — 2013-02-05T01:39:15-05:00 — #6
Thanks guys, but can you guys tell me keeping empty href is better or href with # ? Or doesn't matter!?
ralphm — 2013-02-05T07:45:01-05:00 — #7
If you click a link with an empty href you get an error, while clicking a link with # as the href value just jumps you to the top of the page, so the latter is better.
Hm, I thought that was the case, but thought I'd better test it, and it wasn't so—no error message when the href is empty. But still ...
... the real question is—why have a link on your page with either of these? If the link has nowhere to go, it shouldn't be a link.
ameerulislam — 2013-02-05T07:46:24-05:00 — #8
Just for temporary use. For demo templates. You know that.
ralphm — 2013-02-05T07:52:35-05:00 — #9
I always use #, because I've gotten errors in the past having nothing in there.
You know that.
ameerulislam — 2013-02-05T07:58:25-05:00 — #10
No, I meant you know why people use # .
ralphm — 2013-02-05T08:00:45-05:00 — #11
Yes, but not just for demo purposes. Too often it ends up in the finished code, for the reason I mentioned.
ameerulislam — 2013-02-05T08:06:25-05:00 — #12
In that case there shouldn't be empty links.. I'm with you on that.