VoidOperator-3

 

It will change the background color of body on clicking of anchor button.

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <a href="javascript:void(document.body.style.backgroundColor='green');"> Click here for green background </a> </body> </html>
Output