The Following code adds an image before header tag. How can add javascript or jquery code for handling some task when the image added before the header was clicked.
h1::before
{
content: url(smiley.gif);
}
The Html code is :
<html>
<body>
<h1>Hi </h1>
</body>
</html>