void keyword which is popularly used as
javascipt:void(0) . The void is a special operator which evaluates provided expression as a parameter and returns null. In every case, the void() returns null. As the void dictionary, meaning is completely empty space or nothing.
onlick() or similar event is defined but the href is set as
Evaluate Different Values with void()
Actually, the void() method returns undefined even some data is provided as a parameter. In the following examples, every void() execution returns undefined.
void(1+2) //undefined void("https://wwww.wisetut.com") //undefined
<a href=# onclick="display()">Display</a>