Click Event Handler
-
Hello,
I am trying to to get a click event handler working on a popup window so I can do some further processing on the anchor tag ID. As a test, I have a marker set up with the following popup html:
<h4><a id="IDCODE" href="https://www.example.com/" rel="noopener noreferrer" target="_blank" onclick="alert(this.id)">Test</a></h4><br/>
In the marker edit page the click event works. I get an alert with the ID value. However, when I visit the page that contains the map, the click event does nothing.
What is the proper way to handle click events on popup windows? Thanks.
- The topic ‘Click Event Handler’ is closed to new replies.