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
<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 -tutorialOthers
Languages
Frameworks
Web / Design
Mobile Technology
Sql & Technology
R4R