I have a situation in which I am creating dynamic content from my database. In which I am creating <div>
with content in it. And I have added onclick
event that <div>
. If user click on the content of the div which means on <div>
it opens a popup window. But if there is a anchor tag in the content. At that time if user clicks on anchor tag, Both the event executes it also opens the link page and popup.
I want to prevent that div onclick
when anchor tag is clicked.
Is there any this that can help me?