Which one is better to use for a JavaScript link, “#” or “javascript:void(0)”?
Answers
Answered by
0
Answer:-The JavaScript void operator evaluates the given expression and then returns a value of undefined . You may ocassionally encounter an HTML document that uses href="JavaScript:Void(0);" within an <a> element. JavaScript void is often used when, inserting an expression into a web page may produce an unwanted side-effect.
Similar questions