Would you like to copy the permanent link to your clipboard?
Permanent link:
https://help.openstreetmap.org/questions/11664/how-to-add-an-onclick-function-to-a-marker/11668