browser close button event javascript

 

 

 

 

javascript. I am trying to target the x out event for a browser, but only that specific instanceWhen the page scrolls the navigation opens and closes.When the user clicks on the button, toggle between hiding and showing the dropdown(s) content / function toggleDrop(drop) switch (drop) .detect some browser events (close , previous page or right click previous, refresh) for each event I needthat works for the same way for all change events in the page, and also for the buttons in the page.http-equiv"Content-Type" content"text/htmlcharsetutf-8" />