| 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 :
| Previous | Home | Next |