Why use `javascript:void(0)` instead of `javascript:` as an href do nothing placeholder? [duplicate]
问题 This question already has answers here : href=“javascript:” vs. href=“javascript:void(0)” (8 answers) Closed 4 years ago . I have seen href="javascript:void(0)" and I have seen href="javascript:;" Is there any reason I would not just use href="javascript:" instead? Edit: Let me make it clear: I am combining this with an onclick and have no objection to using return false if it becomes necessary to use the alternative. Of course this is only if the alternative makes better sense over