I have a website which displays search results. The results are displayed with headline information of the full item. The html of each search result looks like this:
<article class="search_result" onclick="location.href='#';" style="cursor: pointer;">
// Search result data
</article>
As you can see, I have made it so that you can click anywhere and access the result in more detail
However, within the search result, I have also included a button which performs another function.
The problem I have is when you click on the button, both the button and the search result receive the click event and act upon it. If the button is clicked, I dont want the search result to handle it as well.
How can I sort this?