JavaScript Tutorial

void keywords In JavaScript
Previous Home Next

JavaScript we can use void keywords in many ways Basically in JavaScript it is an unary operator. this void keyword defines an expression which will be evaluated without returning a value. It is most commonly used for client side JavaScript

Example :

<p> Click on the r4r tutorial</p>

    <a href="javascript:void(alert('r4r is a best tutorial'))">r4r -tutorial</a>


Output :

Click on the r4r tutorial

r4r -tutorial
Previous Home Next