Javascript examples for Operator:void
void operator evaluates an expression and returns undefined.
<!DOCTYPE html> <html> <body> <p> <a href="javascript:void(0);"> Useless link//from w w w . ja v a 2 s. c o m </a> </p> <p> <a href="javascript:void(document.body.style.backgroundColor='red');"> Click me to change the background color of body to red. </a> </p> </body> </html>