---
title: "Discussion on \"Stop Propagation event in LWC JavaScript Salesforce.\" | Hashnode"
description: "Discussion on \"Stop Propagation event in LWC JavaScript Salesforce.\". The Below code shows exact how the Stop Propagation works. First Create a Div inside parent Div which is Nested Div. Now add onclick() function on both the div. Now When you click on the child Div the parent div will also clicked. To prevent this we ..."
url: "https://hashnode.com/posts/stop-propagation-event-in-lwc-javascript-salesforce/6290b1ac8826d59c309ddab8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stop Propagation event in LWC JavaScript Salesforce.](https://ashu007.hashnode.dev/stop-propagation-event-in-lwc-javascript-salesforce?utm_source=hashnode&utm_medium=feed)

The Below code shows exact how the Stop Propagation works. First Create a Div inside parent Div which is Nested Div. Now add onclick() function on both the div. Now When you click on the child Div the parent div will also clicked. To prevent this we ...

May 27, 2022 · 1 min read · ashu007.hashnode.dev  
Read the article

-   [#salesforce](https://hashnode.com/tag/salesforce)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#events](https://hashnode.com/tag/events)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Ashutosh Tiwari](https://hashnode.com/@ashu007)

@ashu007 · Uttrakhand,India

  
[View profile](https://hashnode.com/@ashu007)

Salesforce Developer

I am Salesforce Developer from Varanasi.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
