We would like to know how to disable click on img tag under anchor tag.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
img {<!-- w w w . j av a2 s. c om-->
pointer-events: none;
cursor: default;
}
</style>
</head>
<body>
<a href="http://google.com">link <img src="http://www.java2s.com/style/download.png" />
</a>
</body>
</html>
The code above is rendered as follows: