I have some code which displays a icon which adds item to a list. When clicking the image it adds the item but I would like to show some message that this has taken place.
The code is:
if($params->get('show_add_to_playlist')) $buttons[] = "<a href=\"javascript:add_song_to_playlist(".$song->id.",".$playlist_id.",'s');\">".JHTML::image($jwplayer_root.'buttons/add.png',JText::_('ADD_TO_CURRENT_PLAYLIST'),array("title" => JText::_('ADD_TO_CURRENT_PLAYLIST')) )."</a>";
How and where in this code would I add a variable like 'onclick' so I can display a message saying the item has been added?
Thanks.











