Handle event OnClick for hidden objects lazarus / 43-Android ---------------------------------------------------------------------- las · 2019-06-05 18:42 Hi! Placed on the form panel jPanel1. On the panel jPanel1 put jPanel2. On both panels I assign the OnClick event. I programmatically hide jPanel2 (jPanel2.visible: = false) jPanel2 disappears from the screen, but the onPlick event on jPanel1 does not work where the hidden jPanel2 is located. Why is that? ---------------------------------------------------------------------- jmpessoa · 2019-06-05 22:14 You can try: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  jPanel2.visible: = false   // <<--- your code jPanel1.BringToFront();  // <<---  NEW code