Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Operators</h1> <h2>The void Operator</h2> <p> <a href="javascript:void(0);">Useless link</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>