How to call javascript function in anchor tag href

Call javascript function in anchor tag href


<html>
<head>
<title>Call javascript function in anchor tag  href:Examples</title>
</head>
<body>
<p><a href="javascript:void(window.open('http://xyz.com/'))">
Open a new window.</a></p>
</body>

</html>



EmoticonEmoticon