![Trigger an onClick event outside the child element, works for nested child components too. - DEV Community Trigger an onClick event outside the child element, works for nested child components too. - DEV Community](https://res.cloudinary.com/practicaldev/image/fetch/s--Ia2cyhDa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/siiwgdvn0bx4gcs1nz3v.png)
Trigger an onClick event outside the child element, works for nested child components too. - DEV Community
![link href="https://awards.infcdn.net/sq5_n.css" rel="stylesheet"/><div id="rest_sq5" onclick="if(event.target.nodeName.toLowerCase() != 'a') {window.open(this.querySelector('.sq_bot').href);return 0;}"><a href="https://restaurantguru.com/La-Ronda ... link href="https://awards.infcdn.net/sq5_n.css" rel="stylesheet"/><div id="rest_sq5" onclick="if(event.target.nodeName.toLowerCase() != 'a') {window.open(this.querySelector('.sq_bot').href);return 0;}"><a href="https://restaurantguru.com/La-Ronda ...](https://media-cdn.tripadvisor.com/media/photo-s/1a/17/6d/53/la-ronda-camargo-cantabria.jpg)
link href="https://awards.infcdn.net/sq5_n.css" rel="stylesheet"/><div id="rest_sq5" onclick="if(event.target.nodeName.toLowerCase() != 'a') {window.open(this.querySelector('.sq_bot').href);return 0;}"><a href="https://restaurantguru.com/La-Ronda ...
![Smooth Scroll To A Desired Left Or Right DIV OnClick Via Pure JavaScript - EXEIdeas – Let's Your Mind Rock Smooth Scroll To A Desired Left Or Right DIV OnClick Via Pure JavaScript - EXEIdeas – Let's Your Mind Rock](https://www.exeideas.com/wp-content/uploads/2014/05/Smooth-Scroll-To-A-Desired-Left-Or-Right-DIV-OnClick-Via-Pure-JavaScript.jpg)