If clicked img src contains specific text
<p>Hi all how can i check If clicked img src contains specific text if then do some functions? </p>

<p>Example:</p>

<p><code>&lt;img src="file:///C:/path/img4-dog.jpg"&gt;,
&lt;img src="file:///C:/path/img4-cat.jpg"&gt;</code> </p>

<p>run alert if clicked img src contains 'dog' something like that?</p>
