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 :

<html>
<head>
</script>
<p> Click on the r4r tutorial</p>

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

</head>
</html>

Output :

Click on the r4r tutorial

r4r -tutorial
Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: